diff options
author | Andrew Resch <andrewresch@gmail.com> | 2012-02-29 15:20:59 -0800 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2012-02-29 15:20:59 -0800 |
commit | 2ae936df44f59544c9e05357a4fea1ef5fbd0603 (patch) | |
tree | c071b41574efe0e1fc7352d39af4e5ecacbb1918 | |
parent | 1f5cfd16e0d39508c8ea8f4f5518129356caf3f0 (diff) | |
download | deluge-2ae936df4.zip deluge-2ae936df4.tar.gz deluge-2ae936df4.tar.bz2 |
Remove setting torrent.is_finished in the resume alert
Set torrent.is_finished to false when torrent is in a Checking or Downloading state
-rw-r--r-- | deluge/core/torrentmanager.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 7ab433d..3dd316c 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -989,7 +989,6 @@ class TorrentManager(component.Component): torrent_id = str(alert.handle.info_hash()) except: return - torrent.is_finished = torrent.handle.is_seed() old_state = torrent.state torrent.update_state() if torrent.state != old_state: @@ -1009,7 +1008,7 @@ class TorrentManager(component.Component): torrent.update_state() # Torrent may need to download data after checking. - if torrent.state == 'Checking': + if torrent.state in ('Checking', 'Checking Resume Data', 'Downloading'): torrent.is_finished = False # Only emit a state changed event if the state has actually changed |