[Modify] Polish it
This commit is contained in:
parent
b0d84ea022
commit
22117c527e
@ -263,10 +263,13 @@ namespace WebSocketSharp.Server
|
||||
private void broadcast (Opcode opcode, byte[] data, Action completed)
|
||||
{
|
||||
var cache = new Dictionary<CompressionMethod, byte[]> ();
|
||||
|
||||
try {
|
||||
foreach (var host in Hosts) {
|
||||
if (_state != ServerState.Start)
|
||||
if (_state != ServerState.Start) {
|
||||
_log.Error ("The server is shutting down.");
|
||||
break;
|
||||
}
|
||||
|
||||
host.Sessions.Broadcast (opcode, data, cache);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user