internal void StopAsyncDelivery() { if (startedAsyncDelivery) { this.dispatchingThread.ExceptionListener -= this.dispatchingThread_ExceptionHandler; dispatchingThread.Stop((int)MAX_THREAD_WAIT.TotalMilliseconds); startedAsyncDelivery = false; } }
internal void StopAsyncDelivery() { if (startedAsyncDelivery) { this.dispatchingThread.ExceptionListener -= this.dispatchingThread_ExceptionHandler; dispatchingThread.Stop(5000); startedAsyncDelivery = false; } }