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