Do RSS serializing on worker thread

PR #16357.
This commit is contained in:
Prince Gupta
2022-06-09 17:46:37 +05:30
committed by GitHub
parent eddeda7bab
commit c47e29c7c8
7 changed files with 260 additions and 95 deletions

View File

@@ -122,12 +122,14 @@ Session::~Session()
{
qDebug() << "Deleting RSS Session...";
m_workingThread->quit();
m_workingThread->wait();
//store();
delete m_itemsByPath[u""_qs]; // deleting root folder
// some items may add I/O operation at destruction
// stop working thread after deleting root folder
m_workingThread->quit();
m_workingThread->wait();
qDebug() << "RSS Session deleted.";
}