From b885d2deebeee477e0c85a6f1c462349c52efc88 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 19 Jun 2007 03:17:23 +0000 Subject: [PATCH] Do not check for available free space if resuming a torrent that is seeding --- src/core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core.py b/src/core.py index 953d8d299..52b9042f2 100644 --- a/src/core.py +++ b/src/core.py @@ -461,6 +461,12 @@ class Manager: if (index < self.get_pref('max_active_torrents') or self.get_pref('max_active_torrents') == -1) \ and self.get_core_torrent_state(unique_ID, efficient)['is_paused'] \ and not self.is_user_paused(unique_ID): + + # This torrent is a seed so skip all the free space checking + if self.get_core_torrent_state(unique_ID, efficient)['is_seed']: + deluge_core.resume(unique_ID) + continue + # Before we resume, we should check if the torrent is using Full Allocation # and if there is enough space on to finish this file. if self.unique_IDs[unique_ID].compact == False: