[Modify] Polish it

This commit is contained in:
sta 2021-05-27 19:42:57 +09:00
parent 07cd1f4108
commit 6852892f02

View File

@ -184,9 +184,7 @@ namespace WebSocketSharp.Net
internal void Complete (Exception exception) internal void Complete (Exception exception)
{ {
_exception = _inGet && (exception is ObjectDisposedException) _exception = exception;
? new HttpListenerException (995, "The listener is closed.")
: exception;
complete (); complete ();
} }