mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
fix remove torrent bug
This commit is contained in:
parent
c566ff7231
commit
b375ede4d0
1 changed files with 1 additions and 3 deletions
|
@ -690,9 +690,7 @@ class Manager:
|
||||||
# Add torrents to core and unique_IDs
|
# Add torrents to core and unique_IDs
|
||||||
torrents_with_unique_ID = self.unique_IDs.values()
|
torrents_with_unique_ID = self.unique_IDs.values()
|
||||||
|
|
||||||
# loop through a temp list, so we can remove torrents without
|
for torrent in self.state.torrents:
|
||||||
# messing up iteration
|
|
||||||
for torrent in list(self.state.torrents):
|
|
||||||
if not os.path.exists(torrent.filename):
|
if not os.path.exists(torrent.filename):
|
||||||
print "Missing file: %s" % torrent.filename
|
print "Missing file: %s" % torrent.filename
|
||||||
self.state.torrents.remove(torrent)
|
self.state.torrents.remove(torrent)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue