From 010d6a63c5cbf0538cbbaf907c44556de94108ba Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 19 Aug 2017 15:22:10 +0900 Subject: [PATCH] [Modify] Throw InvalidOperationException --- websocket-sharp/Server/WebSocketSessionManager.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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 ();