diff --git a/websocket-sharp/Server/WebSocketSessionManager.cs b/websocket-sharp/Server/WebSocketSessionManager.cs index 6d94a13a..c001163e 100644 --- a/websocket-sharp/Server/WebSocketSessionManager.cs +++ b/websocket-sharp/Server/WebSocketSessionManager.cs @@ -1019,22 +1019,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 bool PingTo (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); } return session.Context.WebSocket.Ping ();