[Modify] Polish it

This commit is contained in:
sta 2021-11-16 19:51:09 +09:00
parent f0a944912a
commit 4717fa3acb

View File

@ -887,8 +887,10 @@ namespace WebSocketSharp.Server
public void CloseSession (string id)
{
IWebSocketSession session;
if (!TryGetSession (id, out session)) {
var msg = "The session could not be found.";
throw new InvalidOperationException (msg);
}