mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Remove setting torrent.is_finished in the resume alert
Set torrent.is_finished to false when torrent is in a Checking or Downloading state
This commit is contained in:
parent
1f5cfd16e0
commit
2ae936df44
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue