[Modify] Replace it

This commit is contained in:
sta 2021-05-27 19:39:31 +09:00
parent b4c82165c6
commit 07cd1f4108

View File

@ -572,7 +572,8 @@ namespace WebSocketSharp.Net
cleanupContextQueue (force); cleanupContextQueue (force);
cleanupContextRegistry (); cleanupContextRegistry ();
var ex = new ObjectDisposedException (_objectName); var msg = "The listener is closed.";
var ex = new HttpListenerException (995, msg);
cleanupWaitQueue (ex); cleanupWaitQueue (ex);
EndPointManager.RemoveListener (this); EndPointManager.RemoveListener (this);