[Modify] Replace it
This commit is contained in:
parent
0ac294aff1
commit
f895d249a2
@ -2550,13 +2550,7 @@ namespace WebSocketSharp
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (code == CloseStatusCode.NoStatus) {
|
closeAsync ((ushort) code, reason);
|
||||||
closeAsync (new CloseEventArgs (), true, true, false);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var send = !code.IsReserved ();
|
|
||||||
closeAsync (new CloseEventArgs (code, reason), send, send, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user