From b73d0548c8127e0d6aaa757a4b01a2a1ee7c18ce Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 14 Jul 2008 20:08:24 +0000 Subject: [PATCH] - Download queueing fix --- src/bittorrent.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 19b0327c2..d41cb3f91 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -298,6 +298,14 @@ void bittorrent::updateDownloadQueue() { } } } + } else { + if(currentActiveTorrents < maxActiveDlTorrents && isDownloadQueued(hash)) { + QTorrentHandle h = getTorrentHandle(hash); + h.resume(); + queuedDownloads->removeAll(hash); + QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".queued"); + ++currentActiveTorrents; + } } } if(currentActiveTorrents < maxActiveDlTorrents) {