[Modify] Lock it
This commit is contained in:
parent
d15690bc40
commit
27a23446fb
@ -839,8 +839,13 @@ namespace WebSocketSharp.Net
|
|||||||
if (_disposed)
|
if (_disposed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
lock (_contextRegistrySync) {
|
||||||
|
if (_disposed)
|
||||||
|
return;
|
||||||
|
|
||||||
close (true);
|
close (true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user