Skip to content

Commit 27a2344

Browse files
committed
[Modify] Lock it
1 parent d15690b commit 27a2344

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

websocket-sharp/Net/HttpListener.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,12 @@ void IDisposable.Dispose ()
839839
if (_disposed)
840840
return;
841841

842-
close (true);
842+
lock (_contextRegistrySync) {
843+
if (_disposed)
844+
return;
845+
846+
close (true);
847+
}
843848
}
844849

845850
#endregion

0 commit comments

Comments
 (0)