[Modify] Polish it
This commit is contained in:
parent
8532a1f44e
commit
e284fbde64
@ -1165,8 +1165,10 @@ namespace WebSocketSharp.Server
|
||||
public void SendTo (byte[] data, string id)
|
||||
{
|
||||
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