[Modify] Lock it

This commit is contained in:
sta 2021-04-20 19:59:11 +09:00
parent 0385be837d
commit d15690bc40

View File

@ -662,7 +662,12 @@ namespace WebSocketSharp.Net
if (_disposed)
return;
close (false);
lock (_contextRegistrySync) {
if (_disposed)
return;
close (false);
}
}
/// <summary>