/// <summary> /// Stop the connection /// </summary> internal void Stop() { // Request the listener thread to stop StopRequested = true; // If connection failed to start there's no processor thread if (ProcessorThread != null) { // Wait for termination ProcessorThread.Join(); } }
protected virtual void TerminateProcessing() { ProcessorThread.Join(1500); }