[Modify] Add a check

This commit is contained in:
sta 2016-04-01 11:39:31 +09:00
parent b76349936b
commit afd6191331

View File

@ -811,7 +811,11 @@ namespace WebSocketSharp.Net
if (_disposed)
return;
close (true);
if (_listening) {
_listening = false;
close (true);
}
_disposed = true;
}