diff --git a/websocket-sharp/Server/WebSocketBehavior.cs b/websocket-sharp/Server/WebSocketBehavior.cs index fceb533a..20437f98 100644 --- a/websocket-sharp/Server/WebSocketBehavior.cs +++ b/websocket-sharp/Server/WebSocketBehavior.cs @@ -573,6 +573,7 @@ namespace WebSocketSharp.Server { if (_websocket == null) { var msg = "The session has not started yet."; + throw new InvalidOperationException (msg); }