private void LocalDisconnect() { _clientState = ClientState.Disconnecting; _timer.Stop(); _client.Disconnect(); _clientState = ClientState.Disconnected; }
private void Disconnect() { #if HAVE_SYNC if (IsSync) Client.Disconnect(); else #endif Client.DisconnectAsync().Wait(); }