Browse Source

Prevent multiple session refreshes from being enqueued

adaptive-webui-19844
Vladimir Golovnev 2 years ago committed by GitHub
parent
commit
6d1573f901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/base/bittorrent/session.cpp

8
src/base/bittorrent/session.cpp

@ -1122,8 +1122,12 @@ void Session::prepareStartup() @@ -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();

Loading…
Cancel
Save