Fix for issue #21
This commit is contained in:
@@ -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 ();
|
||||
|
||||
|
@@ -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 ();
|
||||
|
||||
|
Reference in New Issue
Block a user