Disconnect connection to APRS-IS when worker stopped

This commit is contained in:
Jon Beniston 2021-01-14 10:03:37 +00:00
parent 45bf9e6d74
commit 8ae2897814
1 changed files with 3 additions and 0 deletions

View File

@ -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()