From 8ae2897814938411b8156cecd36960b4e19b83b7 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 14 Jan 2021 10:03:37 +0000 Subject: [PATCH] Disconnect connection to APRS-IS when worker stopped --- plugins/feature/aprs/aprsworker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/feature/aprs/aprsworker.cpp b/plugins/feature/aprs/aprsworker.cpp index fd55bb63f..2764daab2 100644 --- a/plugins/feature/aprs/aprsworker.cpp +++ b/plugins/feature/aprs/aprsworker.cpp @@ -74,6 +74,9 @@ void APRSWorker::stopWork() QMutexLocker mutexLocker(&m_mutex); disconnect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); m_running = false; + // Close any existing connection + if (m_socket.isOpen()) + m_socket.close(); } void APRSWorker::handleInputMessages()