[Modify] Lock it
This commit is contained in:
parent
5f73b1bfe3
commit
3447e69286
@ -772,6 +772,12 @@ namespace WebSocketSharp.Net
|
||||
{
|
||||
CheckDisposed ();
|
||||
|
||||
if (_listening)
|
||||
return;
|
||||
|
||||
lock (_contextRegistrySync) {
|
||||
CheckDisposed ();
|
||||
|
||||
if (_listening)
|
||||
return;
|
||||
|
||||
@ -779,6 +785,7 @@ namespace WebSocketSharp.Net
|
||||
|
||||
_listening = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Stops receiving incoming requests.
|
||||
|
Loading…
Reference in New Issue
Block a user