public void Close() { _socket.Close(); if (_protocol != null) { _protocol.Dispose(); _protocol = null; } if (_obfs != null) { _obfs.Dispose(); _obfs = null; } lock (_encryptionLock) { lock (_decryptionLock) { if (_encryptor != null) { ((IDisposable)_encryptor).Dispose(); } } } }
public void Close() { _socket.Close(); if (_protocol != null) { _protocol.Dispose(); _protocol = null; } if (_obfs != null) { _obfs.Dispose(); _obfs = null; } lock (_encryptionLock) { lock (_decryptionLock) { if (_encryptor != null) { ((IDisposable)_encryptor).Dispose(); _encryptor = null; } } } _socket = null; SendEncryptBuffer = null; ReceiveDecryptBuffer = null; }