Browse Source

Save torrents priorities on torrent finished

Save fastresumes for all torrents that shifted in the queue when a torrent finished.
adaptive-webui-19844
thalieht 6 years ago
parent
commit
ec9120adf0
  1. 5
      src/base/bittorrent/session.cpp

5
src/base/bittorrent/session.cpp

@ -3673,8 +3673,11 @@ void Session::handleTorrentChecked(TorrentHandle *const torrent)
void Session::handleTorrentFinished(TorrentHandle *const torrent) void Session::handleTorrentFinished(TorrentHandle *const torrent)
{ {
if (!torrent->hasError() && !torrent->hasMissingFiles()) if (!torrent->hasError() && !torrent->hasMissingFiles()) {
saveTorrentResumeData(torrent); saveTorrentResumeData(torrent);
if (isQueueingSystemEnabled())
handleTorrentsPrioritiesChanged();
}
emit torrentFinished(torrent); emit torrentFinished(torrent);
qDebug("Checking if the torrent contains torrent files to download"); qDebug("Checking if the torrent contains torrent files to download");

Loading…
Cancel
Save