From 8eb04467bbaa516893e8e668b2a2da5a999d18b0 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 16 Jun 2007 18:56:11 +0000 Subject: [PATCH] Small fix for the resume code --- src/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.py b/src/core.py index 0149da965..92f8d0946 100644 --- a/src/core.py +++ b/src/core.py @@ -466,9 +466,9 @@ class Manager: and not self.is_user_paused(unique_ID): # 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.state.torrents[unique_ID].compact == False: + if self.unique_IDs[unique_ID].compact == False: torrent_state = self.get_core_torrent_state(unique_ID, efficient) - avail = self.calc_free_space(self.state.torrents[unique_ID].save_dir) + avail = self.calc_free_space(self.unique_IDs[unique_ID].save_dir) total_needed = torrent_state["total_size"] - torrent_state["total_done"] if total_needed < avail: # We have enough free space, so lets resume this torrent