dont resave fastresume for seeds
This commit is contained in:
parent
1f881a3d9c
commit
d4d1ccac33
|
@ -459,6 +459,7 @@ class Manager:
|
|||
def save_fastresume_data(self, uid=None):
|
||||
if uid == None:
|
||||
for unique_ID in self.unique_IDs:
|
||||
if not self.get_core_torrent_state(unique_ID, True)['is_seed']:
|
||||
try:
|
||||
os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
|
||||
except:
|
||||
|
@ -468,6 +469,7 @@ class Manager:
|
|||
except Exception, e:
|
||||
print "Unable to save fastresume: ", e
|
||||
else:
|
||||
if not self.get_core_torrent_state(uid, True)['is_seed']:
|
||||
try:
|
||||
os.remove(self.unique_IDs[uid].filename + ".fastresume")
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue