mirror of
https://github.com/logos-storage/deluge.git
synced 2026-01-19 05:23:08 +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
@ -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…
x
Reference in New Issue
Block a user