private void WaitForTransportInterruptionProcessingToComplete()
{
CountDownLatch cdl = this.transportInterruptionProcessingComplete;
if(cdl != null)
{
if(!closed.Value && cdl.Remaining > 0)
{
Tracer.Warn("dispatch paused, waiting for outstanding dispatch interruption " +
"processing (" + cdl.Remaining + ") to complete..");
cdl.await(TimeSpan.FromSeconds(10));
}
SignalInterruptionProcessingComplete();
}
}