From 5af9907fee05f882f8d2422e47198ebf61d97bb7 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Wed, 21 Mar 2012 22:55:48 -0500 Subject: Update ktorrent package to 2.2.8 and fix internal geoip database. This resolves bug report 363. --- libktorrent/torrent/queuemanager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libktorrent/torrent/queuemanager.cpp') 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) -- cgit v1.2.1