[Fix] Set system error code 995
This commit is contained in:
parent
e14fc1b531
commit
b25343f725
@ -162,7 +162,7 @@ namespace WebSocketSharp.Net
|
|||||||
internal void Complete (Exception exception)
|
internal void Complete (Exception exception)
|
||||||
{
|
{
|
||||||
_exception = _inGet && (exception is ObjectDisposedException)
|
_exception = _inGet && (exception is ObjectDisposedException)
|
||||||
? new HttpListenerException (500, "Listener closed.")
|
? new HttpListenerException (995, "Listener closed.")
|
||||||
: exception;
|
: exception;
|
||||||
|
|
||||||
lock (_sync)
|
lock (_sync)
|
||||||
|
Loading…
Reference in New Issue
Block a user