mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 00:47:21 -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);
|
||||
context->isLoadedResumeDataHandlingEnqueued = true;
|
||||
}
|
||||
m_nativeSession->post_torrent_updates();
|
||||
m_refreshEnqueued = true;
|
||||
|
||||
if (!m_refreshEnqueued)
|
||||
{
|
||||
m_nativeSession->post_torrent_updates();
|
||||
m_refreshEnqueued = true;
|
||||
}
|
||||
});
|
||||
|
||||
context->startupStorage->loadAll();
|
||||
|
||||
Reference in New Issue
Block a user