[Modify] Polish it
This commit is contained in:
parent
2f114401f1
commit
b0d84ea022
@ -363,11 +363,14 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal void Broadcast (
|
internal void Broadcast (
|
||||||
Opcode opcode, byte[] data, Dictionary<CompressionMethod, byte[]> cache)
|
Opcode opcode, byte[] data, Dictionary<CompressionMethod, byte[]> cache
|
||||||
|
)
|
||||||
{
|
{
|
||||||
foreach (var session in Sessions) {
|
foreach (var session in Sessions) {
|
||||||
if (_state != ServerState.Start)
|
if (_state != ServerState.Start) {
|
||||||
|
_log.Error ("The service is shutting down.");
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
session.Context.WebSocket.Send (opcode, data, cache);
|
session.Context.WebSocket.Send (opcode, data, cache);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user