Do not check for available free space if resuming a torrent that is

seeding
This commit is contained in:
Andrew Resch 2007-06-19 03:17:23 +00:00
parent 3118c2912f
commit b885d2deeb
1 changed files with 6 additions and 0 deletions

View File

@ -461,6 +461,12 @@ class Manager:
if (index < self.get_pref('max_active_torrents') or self.get_pref('max_active_torrents') == -1) \ 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 self.get_core_torrent_state(unique_ID, efficient)['is_paused'] \
and not self.is_user_paused(unique_ID): 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 # Before we resume, we should check if the torrent is using Full Allocation
# and if there is enough space on to finish this file. # and if there is enough space on to finish this file.
if self.unique_IDs[unique_ID].compact == False: if self.unique_IDs[unique_ID].compact == False: