mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
committed by
Vladimir Golovnev (Glassez)
parent
fc90953f91
commit
e574bc1c57
@@ -1841,25 +1841,24 @@ void TorrentImpl::handleTorrentFinishedAlert(const lt::torrent_finished_alert *p
|
|||||||
|
|
||||||
m_statusUpdatedTriggers.enqueue([this]()
|
m_statusUpdatedTriggers.enqueue([this]()
|
||||||
{
|
{
|
||||||
m_hasSeedStatus = true;
|
|
||||||
|
|
||||||
adjustStorageLocation();
|
adjustStorageLocation();
|
||||||
manageIncompleteFiles();
|
manageIncompleteFiles();
|
||||||
|
|
||||||
m_session->handleTorrentNeedSaveResumeData(this);
|
m_session->handleTorrentNeedSaveResumeData(this);
|
||||||
|
|
||||||
const bool recheckTorrentsOnCompletion = Preferences::instance()->recheckTorrentsOnCompletion();
|
const bool recheckTorrentsOnCompletion = Preferences::instance()->recheckTorrentsOnCompletion();
|
||||||
if (isMoveInProgress() || (m_renameCount > 0))
|
if (recheckTorrentsOnCompletion && m_unchecked)
|
||||||
{
|
{
|
||||||
if (recheckTorrentsOnCompletion)
|
forceRecheck();
|
||||||
m_moveFinishedTriggers.enqueue([this]() { forceRecheck(); });
|
|
||||||
m_moveFinishedTriggers.enqueue([this]() { m_session->handleTorrentFinished(this); });
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (recheckTorrentsOnCompletion && m_unchecked)
|
m_hasSeedStatus = true;
|
||||||
forceRecheck();
|
|
||||||
m_session->handleTorrentFinished(this);
|
if (isMoveInProgress() || (m_renameCount > 0))
|
||||||
|
m_moveFinishedTriggers.enqueue([this]() { m_session->handleTorrentFinished(this); });
|
||||||
|
else
|
||||||
|
m_session->handleTorrentFinished(this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user