public void CleanUp() { if (_client != null) { _client.Dispose(); _client = null; } if (_listener != null) { _listener.Stop(); _listener = null; } }
public void CleanUp() { if (_remoteListener != null) { _remoteListener.Stop(); _remoteListener = null; } if (_channelThread != null) { if (_channelThread.IsAlive) { _channelThread.Abort(); } } }