Skip to content

Commit 526fb63

Browse files
committed
[Modify] Move it
1 parent d7b3fef commit 526fb63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websocket-sharp/Net/HttpListener.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,15 +813,15 @@ public void Stop ()
813813
if (!_listening)
814814
return;
815815

816-
EndPointManager.RemoveListener (this);
817-
818816
cleanupContextQueue (true);
819817
cleanupContextRegistry ();
820818

821819
var msg = "The listener is stopped.";
822820
var ex = new HttpListenerException (995, msg);
823821
cleanupWaitQueue (ex);
824822

823+
EndPointManager.RemoveListener (this);
824+
825825
_listening = false;
826826
}
827827
}

0 commit comments

Comments
 (0)