[Modify] Polish it
This commit is contained in:
@@ -967,8 +967,10 @@ namespace WebSocketSharp.Server
|
||||
public void CloseSession (string id, ushort code, string reason)
|
||||
{
|
||||
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