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