diff --git a/websocket-sharp/Server/WebSocketSessionManager.cs b/websocket-sharp/Server/WebSocketSessionManager.cs index 37fb37e4..6d94a13a 100644 --- a/websocket-sharp/Server/WebSocketSessionManager.cs +++ b/websocket-sharp/Server/WebSocketSessionManager.cs @@ -970,12 +970,6 @@ namespace WebSocketSharp.Server /// -or- /// /// - /// The session could not be found. - /// - /// - /// -or- - /// - /// /// is /// . /// @@ -994,6 +988,9 @@ namespace WebSocketSharp.Server /// could not be UTF-8-encoded. /// /// + /// + /// The session could not be found. + /// /// /// The size of is greater than 123 bytes. /// @@ -1002,7 +999,7 @@ namespace WebSocketSharp.Server 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 (code, reason);