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