Skip to content

Commit 32889bd

Browse files
committed
[Modify] Add it
1 parent bcfae81 commit 32889bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

websocket-sharp/Server/WebSocketSessionManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,11 @@ private Dictionary<string, bool> broadping (byte[] frameAsBytes)
397397
return ret;
398398
}
399399

400+
private bool canSet ()
401+
{
402+
return _state == ServerState.Ready || _state == ServerState.Stop;
403+
}
404+
400405
private bool canSet (out string message)
401406
{
402407
message = null;

0 commit comments

Comments
 (0)