summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/queuemanager.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-03-21 22:55:48 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-03-21 22:55:48 -0500
commit5af9907fee05f882f8d2422e47198ebf61d97bb7 (patch)
tree5f31682a2cf6cb479b3170ec6d0d79f382397634 /libktorrent/torrent/queuemanager.cpp
parentc6c4865cd4bb5b203de3a0db0cc2182b240570d3 (diff)
downloadktorrent-5af9907fee05f882f8d2422e47198ebf61d97bb7.tar.gz
ktorrent-5af9907fee05f882f8d2422e47198ebf61d97bb7.zip
Update ktorrent package to 2.2.8 and fix internal geoip database.
This resolves bug report 363.
Diffstat (limited to 'libktorrent/torrent/queuemanager.cpp')
-rw-r--r--libktorrent/torrent/queuemanager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libktorrent/torrent/queuemanager.cpp b/libktorrent/torrent/queuemanager.cpp
index 0c76b8a..bf64a2e 100644
--- a/libktorrent/torrent/queuemanager.cpp
+++ b/libktorrent/torrent/queuemanager.cpp
@@ -49,6 +49,7 @@ namespace bt
keep_seeding = true; //test. Will be passed from Core
paused_state = false;
+ ordering = false;
}
@@ -439,11 +440,13 @@ namespace bt
void QueueManager::orderQueue()
{
- if (!downloads.count())
+ if (!downloads.count() || ordering)
return;
if (paused_state || exiting)
return;
+
+ ordering = true;
downloads.sort();
@@ -584,7 +587,7 @@ namespace bt
}
}
}
-
+ ordering = false;
}
void QueueManager::torrentFinished(kt::TorrentInterface* tc)