[Modify] Polish it
This commit is contained in:
parent
a5a4b4365e
commit
4780d94091
@ -2164,12 +2164,14 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
// As server, used to broadcast
|
// As server, used to broadcast
|
||||||
internal void Send (Opcode opcode, byte[] data, Dictionary<CompressionMethod, byte[]> cache)
|
internal void Send (
|
||||||
|
Opcode opcode, byte[] data, Dictionary<CompressionMethod, byte[]> cache
|
||||||
|
)
|
||||||
{
|
{
|
||||||
lock (_forSend) {
|
lock (_forSend) {
|
||||||
lock (_forState) {
|
lock (_forState) {
|
||||||
if (_readyState != WebSocketState.Open) {
|
if (_readyState != WebSocketState.Open) {
|
||||||
_logger.Error ("The sending has been interrupted.");
|
_logger.Error ("The state of the connection has been changed.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user