Modified Ping

This commit is contained in:
sta
2014-01-30 17:13:03 +09:00
parent 68ab8e9ea9
commit 81993cbd97
5 changed files with 15 additions and 47 deletions

View File

@@ -588,7 +588,7 @@ namespace WebSocketSharp.Server
byte [] data = null;
var msg = _state.CheckIfStarted () ??
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidPingData ();
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidControlData ("message");
if (msg != null) {
_logger.Error (msg);