Poderosa.PortForwarding.LocalToRemoteChannelFactory.OnError C# (CSharp) Method

OnError() public method

public OnError ( Exception error ) : void
error System.Exception
return void
        public override void OnError(Exception error)
        {
            _closed = true;
            Debug.WriteLine("ChannelFactory OnError " + error.Message);
            Debug.WriteLine(error.StackTrace);
            if (_established) {
                try {
                    _bindedLocalSocket.Close();
                }
                catch (Exception) {
                    Debug.WriteLine("Binded Socket Close Error");
                }
            }
            base.OnError(error);
        }