[Modify] Polish it
This commit is contained in:
parent
c6b7063cb8
commit
e588a4ad85
@ -1994,15 +1994,19 @@ namespace WebSocketSharp
|
|||||||
internal void InternalAccept ()
|
internal void InternalAccept ()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
if (acceptHandshake ()) {
|
if (!acceptHandshake ())
|
||||||
|
return;
|
||||||
|
|
||||||
_readyState = WebSocketState.Open;
|
_readyState = WebSocketState.Open;
|
||||||
open ();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
_logger.Fatal (ex.ToString ());
|
_logger.Fatal (ex.ToString ());
|
||||||
fatal ("An exception has occurred while accepting.", ex);
|
fatal ("An exception has occurred while accepting.", ex);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open ();
|
||||||
}
|
}
|
||||||
|
|
||||||
internal bool Ping (byte[] frameAsBytes, TimeSpan timeout)
|
internal bool Ping (byte[] frameAsBytes, TimeSpan timeout)
|
||||||
|
Loading…
Reference in New Issue
Block a user