mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Prevent multiple session refreshes from being enqueued
This commit is contained in:
committed by
GitHub
parent
ef297dd8e6
commit
6d1573f901
@@ -1122,8 +1122,12 @@ void Session::prepareStartup()
|
|||||||
QMetaObject::invokeMethod(this, [this, context]() { handleLoadedResumeData(context); }, Qt::QueuedConnection);
|
QMetaObject::invokeMethod(this, [this, context]() { handleLoadedResumeData(context); }, Qt::QueuedConnection);
|
||||||
context->isLoadedResumeDataHandlingEnqueued = true;
|
context->isLoadedResumeDataHandlingEnqueued = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_refreshEnqueued)
|
||||||
|
{
|
||||||
m_nativeSession->post_torrent_updates();
|
m_nativeSession->post_torrent_updates();
|
||||||
m_refreshEnqueued = true;
|
m_refreshEnqueued = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
context->startupStorage->loadAll();
|
context->startupStorage->loadAll();
|
||||||
|
|||||||
Reference in New Issue
Block a user