mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-06 08:33:56 +00:00
sync remove torrent loop fix - aaron
This commit is contained in:
parent
a2c63a1f49
commit
aec3bd392b
@ -690,7 +690,9 @@ class Manager:
|
||||
# Add torrents to core and unique_IDs
|
||||
torrents_with_unique_ID = self.unique_IDs.values()
|
||||
|
||||
for torrent in self.state.torrents:
|
||||
# loop through a temp list, so we can remove torrents without
|
||||
# messing up iteration
|
||||
for torrent in list(self.state.torrents):
|
||||
if not os.path.exists(torrent.filename):
|
||||
print "Missing file: %s" % torrent.filename
|
||||
self.state.torrents.remove(torrent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user