[Modify] Polish it

This commit is contained in:
sta 2017-08-24 17:34:10 +09:00
parent 2f114401f1
commit b0d84ea022

View File

@ -363,11 +363,14 @@ namespace WebSocketSharp.Server
}
internal void Broadcast (
Opcode opcode, byte[] data, Dictionary<CompressionMethod, byte[]> cache)
Opcode opcode, byte[] data, Dictionary<CompressionMethod, byte[]> cache
)
{
foreach (var session in Sessions) {
if (_state != ServerState.Start)
if (_state != ServerState.Start) {
_log.Error ("The service is shutting down.");
break;
}
session.Context.WebSocket.Send (opcode, data, cache);
}