fix: crash on app exit due to running thread

https://doc.qt.io/qt-6/qthread.html\#dtor.QThread
This commit is contained in:
talksik
2025-06-09 16:15:28 -07:00
parent dedeb9cd78
commit ee85edd505
+2 -1
View File
@@ -104,9 +104,10 @@ Broadcaster::Broadcaster(QObject *parent) : QObject(parent)
Broadcaster::~Broadcaster()
{
if (m_worker)
if (m_worker && m_worker->isRunning())
{
m_worker->requestInterruption();
m_worker->wait();
}
}