[Modify] Polish it
This commit is contained in:
parent
818b5df9ba
commit
2c4b23f20f
@ -1360,8 +1360,10 @@ namespace WebSocketSharp.Server
|
||||
public void SendToAsync (byte[] data, string id, Action<bool> completed)
|
||||
{
|
||||
IWebSocketSession session;
|
||||
|
||||
if (!TryGetSession (id, out session)) {
|
||||
var msg = "The session could not be found.";
|
||||
|
||||
throw new InvalidOperationException (msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user