Fix#146819 the app-data-service crashes when the destructor is executed.

This commit is contained in:
JunjieBai 2022-11-02 16:56:29 +08:00 committed by iaom
parent e76ebe9f0b
commit f1f6b36588
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ PendingAppInfoQueue::PendingAppInfoQueue(QObject *parent) : QThread(parent)
PendingAppInfoQueue::~PendingAppInfoQueue() PendingAppInfoQueue::~PendingAppInfoQueue()
{ {
this->quit();
this->wait();
if (m_minProcessTimer) { if (m_minProcessTimer) {
delete m_minProcessTimer; delete m_minProcessTimer;
} }