fast resume oops2

This commit is contained in:
Marcos Pinto 2008-01-17 12:22:27 +00:00
parent ac80dd4d59
commit 1c3c5b76b0
1 changed files with 5 additions and 5 deletions

View File

@ -435,12 +435,12 @@ class Manager:
# A separate function, because people may want to call it from time to time
def save_fastresume_data(self, uid=None):
if uid == None:
try:
for unique_ID in self.unique_IDs:
for unique_ID in self.unique_IDs:
try:
os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
except:
pass
deluge_core.save_fastresume(unique_ID, self.unique_IDs[unique_ID].filename)
except:
pass
deluge_core.save_fastresume(unique_ID, self.unique_IDs[unique_ID].filename)
else:
try:
os.remove(self.unique_IDs[uid].filename + ".fastresume")