[Modify] Polish it

This commit is contained in:
sta 2017-08-04 15:21:48 +09:00
parent e3f19c6157
commit 098a10ca4e

View File

@ -823,8 +823,8 @@ namespace WebSocketSharp.Server
throw new InvalidOperationException (msg);
}
if (message == null)
throw new ArgumentNullException ("message");
if (message.IsNullOrEmpty ())
return broadping (WebSocketFrame.EmptyPingBytes, _waitTime);
byte[] bytes;
if (!message.TryGetUTF8EncodedBytes (out bytes)) {