mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +00:00
Only try to stop LoopingCalls if they are running
This commit is contained in:
parent
baa177a1b1
commit
0a84bc73c5
1 changed files with 5 additions and 2 deletions
|
@ -210,8 +210,11 @@ class TorrentManager(component.Component):
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
# Stop timers
|
# Stop timers
|
||||||
self.save_state_timer.stop()
|
if self.save_state_timer.running:
|
||||||
self.save_resume_data_timer.stop()
|
self.save_state_timer.stop()
|
||||||
|
|
||||||
|
if self.save_resume_data_timer.running:
|
||||||
|
self.save_resume_data_timer.stop()
|
||||||
|
|
||||||
# Save state on shutdown
|
# Save state on shutdown
|
||||||
self.save_state()
|
self.save_state()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue