mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
Fix resume saving on shutdown
This commit is contained in:
parent
7ed2d7c87a
commit
c668a59a82
@ -193,7 +193,10 @@ class TorrentManager(component.Component):
|
|||||||
self.shutdown_torrent_pause_list.append(key)
|
self.shutdown_torrent_pause_list.append(key)
|
||||||
# We have to wait for all torrents to pause and write their resume data
|
# We have to wait for all torrents to pause and write their resume data
|
||||||
wait = True
|
wait = True
|
||||||
while self.shutdown_torrent_pause_list or wait:
|
while wait:
|
||||||
|
if self.shutdown_torrent_pause_list:
|
||||||
|
wait = True
|
||||||
|
else:
|
||||||
wait = False
|
wait = False
|
||||||
for torrent in self.torrents.values():
|
for torrent in self.torrents.values():
|
||||||
if torrent.waiting_on_resume_data:
|
if torrent.waiting_on_resume_data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user