[Modify] Lock it

This commit is contained in:
sta 2021-04-20 19:57:04 +09:00
parent bcca8fe1b7
commit 0385be837d

View File

@ -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.