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

Session_ErrorOccured() private method

private Session_ErrorOccured ( object sender, ExceptionEventArgs e ) : void
sender object
e ExceptionEventArgs
return void
        private void Session_ErrorOccured(object sender, ExceptionEventArgs e)
        {
            //  If objected is disposed or being disposed don't handle this event
            if (_isDisposed)
                return;

            _exception = e.Exception;

            _sessionErrorOccuredWaitHandle.Set();
        }