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 8b2c58381a
commit 229d07565c
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;
} }