Fix for issue #21

This commit is contained in:
sta
2013-10-23 16:03:35 +09:00
parent a7d5c1640b
commit dcd0052bc8
5 changed files with 16 additions and 6 deletions

View File

@@ -703,7 +703,7 @@ namespace WebSocketSharp.Server
if (message == null || message.Length == 0)
return Broadping ();
byte [] data;
byte [] data = null;
var msg = _state.CheckIfStarted () ??
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidPingData ();

View File

@@ -601,7 +601,7 @@ namespace WebSocketSharp.Server
if (message == null || message.Length == 0)
return Broadping ();
byte [] data;
byte [] data = null;
var msg = _state.CheckIfStarted () ??
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidPingData ();