Apache.NMS.ActiveMQ.Transport.InactivityMonitor.OnException C# (CSharp) Method

OnException() protected method

protected OnException ( ITransport sender, Exception command ) : void
sender ITransport
command System.Exception
return void
        protected override void OnException(ITransport sender, Exception command)
        {
            if(failed.CompareAndSet(false, true) && !this.disposing)
            {
                Tracer.Debug("Exception received in the Inactivity Monitor: " + command.ToString());
                StopMonitorThreads();
                base.OnException(sender, command);
            }
        }