[Modify] Lock it
This commit is contained in:
parent
5f73b1bfe3
commit
3447e69286
@ -775,9 +775,16 @@ namespace WebSocketSharp.Net
|
|||||||
if (_listening)
|
if (_listening)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
EndPointManager.AddListener (this);
|
lock (_contextRegistrySync) {
|
||||||
|
CheckDisposed ();
|
||||||
|
|
||||||
_listening = true;
|
if (_listening)
|
||||||
|
return;
|
||||||
|
|
||||||
|
EndPointManager.AddListener (this);
|
||||||
|
|
||||||
|
_listening = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user