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