[Fix] Replace it

This commit is contained in:
sta 2016-04-14 11:44:13 +09:00
parent 228ea17262
commit c70c58e8f3

View File

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