mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 03:36:16 +00:00
Update the state of a torrent before attempting to resume. This is an
attempt to fix #283
This commit is contained in:
parent
651523e7d0
commit
7e7feeb2d8
@ -448,6 +448,9 @@ class Torrent:
|
||||
|
||||
def resume(self):
|
||||
"""Resumes this torrent"""
|
||||
# Update the state first just to make sure we have the most current state
|
||||
self.update_state()
|
||||
|
||||
if self.state == "Paused" or self.state == "Error":
|
||||
# Reset the status message just in case of resuming an Error'd torrent
|
||||
self.set_status_message("OK")
|
||||
|
Loading…
x
Reference in New Issue
Block a user