diff --git a/websocket-sharp/Server/WebSocketSessionManager.cs b/websocket-sharp/Server/WebSocketSessionManager.cs index 713da47a..c9526522 100644 --- a/websocket-sharp/Server/WebSocketSessionManager.cs +++ b/websocket-sharp/Server/WebSocketSessionManager.cs @@ -842,22 +842,17 @@ namespace WebSocketSharp.Server /// is . /// /// - /// - /// is an empty string. - /// - /// - /// -or- - /// - /// - /// The session could not be found. - /// + /// is an empty string. + /// + /// + /// The session could not be found. /// public void CloseSession (string id) { IWebSocketSession session; if (!TryGetSession (id, out session)) { var msg = "The session could not be found."; - throw new ArgumentException (msg, "id"); + throw new InvalidOperationException (msg); } session.Context.WebSocket.Close ();