[Modify] Polish it

This commit is contained in:
sta 2021-11-16 19:58:40 +09:00
parent bf482bf84f
commit 6493ac1f1b

View File

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