mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 21:21:24 -07:00
parent
39b965af48
commit
330dce6aa2
1 changed files with 3 additions and 5 deletions
|
@ -5230,9 +5230,6 @@ void SessionImpl::handleMoveTorrentStorageJobFinished(const Path &newPath)
|
||||||
if (torrent)
|
if (torrent)
|
||||||
{
|
{
|
||||||
torrent->handleMoveStorageJobFinished(newPath, finishedJob.context, torrentHasOutstandingJob);
|
torrent->handleMoveStorageJobFinished(newPath, finishedJob.context, torrentHasOutstandingJob);
|
||||||
// The torrent may become "finished" at the end of the move if it was moved
|
|
||||||
// from the "incomplete" location after downloading finished.
|
|
||||||
processPendingFinishedTorrents();
|
|
||||||
}
|
}
|
||||||
else if (!torrentHasOutstandingJob)
|
else if (!torrentHasOutstandingJob)
|
||||||
{
|
{
|
||||||
|
@ -5527,6 +5524,9 @@ void SessionImpl::readAlerts()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Some torrents may become "finished" after different alerts handling.
|
||||||
|
processPendingFinishedTorrents();
|
||||||
|
|
||||||
processTrackerStatuses();
|
processTrackerStatuses();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6166,8 +6166,6 @@ void SessionImpl::handleStateUpdateAlert(const lt::state_update_alert *alert)
|
||||||
if (!updatedTorrents.isEmpty())
|
if (!updatedTorrents.isEmpty())
|
||||||
emit torrentsUpdated(updatedTorrents);
|
emit torrentsUpdated(updatedTorrents);
|
||||||
|
|
||||||
processPendingFinishedTorrents();
|
|
||||||
|
|
||||||
if (m_needSaveTorrentsQueue)
|
if (m_needSaveTorrentsQueue)
|
||||||
saveTorrentsQueue();
|
saveTorrentsQueue();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue