[Modify] Polish it
This commit is contained in:
parent
b11d8a006d
commit
c6b7063cb8
@ -649,19 +649,20 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (acceptHandshake ()) {
|
if (!acceptHandshake ())
|
||||||
|
return false;
|
||||||
|
|
||||||
_readyState = WebSocketState.Open;
|
_readyState = WebSocketState.Open;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
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 false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// As server
|
// As server
|
||||||
private bool acceptHandshake ()
|
private bool acceptHandshake ()
|
||||||
|
Loading…
Reference in New Issue
Block a user