mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 13:48:05 -06:00
Revert "Guard the flag used for deferred session configure." (#6733)
This reverts commit 5cbc7b16c0.
This commit is contained in:
committed by
sledgehammer999
parent
cee308a517
commit
b6e1b6e501
@@ -857,9 +857,6 @@ void Session::adjustLimits()
|
||||
void Session::configure()
|
||||
{
|
||||
qDebug("Configuring session");
|
||||
if (!m_deferredConfigureScheduled) return; // Obtaining the lock is expensive, let's check early
|
||||
QWriteLocker locker(&m_lock);
|
||||
if (!m_deferredConfigureScheduled) return; // something might have changed while we were getting the lock
|
||||
#if LIBTORRENT_VERSION_NUM < 10100
|
||||
libt::session_settings sessionSettings = m_nativeSession->settings();
|
||||
configure(sessionSettings);
|
||||
@@ -2973,12 +2970,10 @@ void Session::initResumeFolder()
|
||||
|
||||
void Session::configureDeferred()
|
||||
{
|
||||
if (m_deferredConfigureScheduled) return; // Obtaining the lock is expensive, let's check early
|
||||
QWriteLocker locker(&m_lock);
|
||||
if (m_deferredConfigureScheduled) return; // something might have changed while we were getting the lock
|
||||
|
||||
QMetaObject::invokeMethod(this, "configure", Qt::QueuedConnection);
|
||||
m_deferredConfigureScheduled = true;
|
||||
if (!m_deferredConfigureScheduled) {
|
||||
QMetaObject::invokeMethod(this, "configure", Qt::QueuedConnection);
|
||||
m_deferredConfigureScheduled = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Enable IP Filtering
|
||||
|
||||
Reference in New Issue
Block a user