mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-31 14:22:26 -04:00
Disconnect connection to APRS-IS when worker stopped
This commit is contained in:
parent
45bf9e6d74
commit
8ae2897814
@ -74,6 +74,9 @@ void APRSWorker::stopWork()
|
|||||||
QMutexLocker mutexLocker(&m_mutex);
|
QMutexLocker mutexLocker(&m_mutex);
|
||||||
disconnect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
|
disconnect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
|
||||||
m_running = false;
|
m_running = false;
|
||||||
|
// Close any existing connection
|
||||||
|
if (m_socket.isOpen())
|
||||||
|
m_socket.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
void APRSWorker::handleInputMessages()
|
void APRSWorker::handleInputMessages()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user