[Modify] Polish it
This commit is contained in:
@@ -1066,8 +1066,10 @@ namespace WebSocketSharp.Server
|
||||
public bool PingTo (string id)
|
||||
{
|
||||
IWebSocketSession session;
|
||||
|
||||
if (!TryGetSession (id, out session)) {
|
||||
var msg = "The session could not be found.";
|
||||
|
||||
throw new InvalidOperationException (msg);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user