Renci.SshNet.ForwardedPortLocal.Session_ErrorOccured C# (CSharp) Method

Session_ErrorOccured() private method

private Session_ErrorOccured ( object sender, System.ExceptionEventArgs e ) : void
sender object
e System.ExceptionEventArgs
return void
        private void Session_ErrorOccured(object sender, ExceptionEventArgs e)
        {
            var session = Session;
            if (session != null)
            {
                StopPort(session.ConnectionInfo.Timeout);
            }
        }