Blob Blame History Raw
From 92e8fc65cf0bc35be5fa5cd1bb5e76061745a0cd Mon Sep 17 00:00:00 2001
From: Joris Guisson <joris.guisson@gmail.com>
Date: Fri, 2 Nov 2012 13:29:06 +0100
Subject: [PATCH 6/9] Backport to 1.3: Make sure stats get updated properly
 during data check

CCBUG: 308707

Conflicts:

	src/torrent/torrentcontrol.cpp
---
 ChangeLog                      | 1 +
 src/torrent/torrentcontrol.cpp | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7ce9c53..b66d050 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 Changes in 1.3.1:
 - Add workaround for broken handling of btrfs subvolumes by solid (306825)
 - Fix crash when preallocating diskspace when a file is enabled during the download of a torrent (307178) 
+- Make sure stats get updated properly during data check (308707)
 
 Changes in 1.3:
 - Do not pass link local IPv6 addresses to ip parameter of tracker (305187)
diff --git a/src/torrent/torrentcontrol.cpp b/src/torrent/torrentcontrol.cpp
index 7cb4eeb..1a01bf2 100644
--- a/src/torrent/torrentcontrol.cpp
+++ b/src/torrent/torrentcontrol.cpp
@@ -134,8 +134,6 @@ namespace bt
 	void TorrentControl::update()
 	{
 		UpdateCurrentTime();
-		if (job_queue->runningJobs())
-			return;
 
 		if (istats.io_error)
 		{
-- 
1.8.0.2