mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Set auto_managed to False when pausing and saving resume data on
shutdown.
This commit is contained in:
parent
1b811e1ecb
commit
2423af8660
1 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,8 @@ class TorrentManager(component.Component):
|
|||
component.pause("AlertManager")
|
||||
for key in self.torrents.keys():
|
||||
if not self.torrents[key].handle.is_paused():
|
||||
# We set auto_managed false to prevent lt from resuming the torrent
|
||||
self.torrents[key].handle.auto_managed(False)
|
||||
self.torrents[key].handle.pause()
|
||||
self.shutdown_torrent_pause_list.append(key)
|
||||
while self.shutdown_torrent_pause_list:
|
||||
|
|
Loading…
Add table
Reference in a new issue