[Modify] Replace it
This commit is contained in:
parent
9f995bb1ae
commit
b5294ef96c
@ -2145,8 +2145,8 @@ namespace WebSocketSharp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Close ()
|
public void Close ()
|
||||||
{
|
{
|
||||||
var msg = _readyState.CheckIfAvailable (true, true, false, false);
|
string msg;
|
||||||
if (msg != null) {
|
if (!checkIfAvailable (true, true, false, false, out msg)) {
|
||||||
_logger.Error (msg);
|
_logger.Error (msg);
|
||||||
error ("An error has occurred in closing the connection.", null);
|
error ("An error has occurred in closing the connection.", null);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user