public void Close(string reason) { this._socket.Close(CloseStatusCode.NORMAL, reason); if (this._timer != null) { this._timer.Cancel(); this._timer = null; } }
public void Close(string reason) { this._socket.Close(CloseStatusCode.NORMAL, reason); if (this._timer != null) { this._timer.Cancel(); this._timer = null; #if DEBUG Console.WriteLine("TMC: Info@close: " + reason); #endif } }