[Modify] Lock it
This commit is contained in:
parent
0385be837d
commit
d15690bc40
@ -662,8 +662,13 @@ namespace WebSocketSharp.Net
|
|||||||
if (_disposed)
|
if (_disposed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
lock (_contextRegistrySync) {
|
||||||
|
if (_disposed)
|
||||||
|
return;
|
||||||
|
|
||||||
close (false);
|
close (false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Ends an asynchronous operation to get an incoming request.
|
/// Ends an asynchronous operation to get an incoming request.
|
||||||
|
Loading…
Reference in New Issue
Block a user