[Modify] Lock it
This commit is contained in:
@@ -588,8 +588,13 @@ namespace WebSocketSharp.Net
|
||||
if (_disposed)
|
||||
return;
|
||||
|
||||
lock (_contextRegistrySync) {
|
||||
if (_disposed)
|
||||
return;
|
||||
|
||||
close (true);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Begins getting an incoming request asynchronously.
|
||||
|
||||
Reference in New Issue
Block a user