[Fix] Replace it

master
sta 10 years ago
parent 228ea17262
commit c70c58e8f3

@ -558,7 +558,7 @@ namespace WebSocketSharp.Net
// Lock _ctxRegistrySync early to avoid race conditions. // Lock _ctxRegistrySync early to avoid race conditions.
lock (_ctxRegistrySync) { lock (_ctxRegistrySync) {
if (!_listening) if (!_listening)
throw new InvalidOperationException ("The listener is stopped/closed."); throw new HttpListenerException (995);
lock (_waitQueueSync) { lock (_waitQueueSync) {
var ctx = getContextFromQueue (); var ctx = getContextFromQueue ();

Loading…
Cancel
Save