Update the state of a torrent before attempting to resume. This is an

attempt to fix #283
This commit is contained in:
Andrew Resch 2008-06-16 23:14:21 +00:00
parent 651523e7d0
commit 7e7feeb2d8
1 changed files with 3 additions and 0 deletions

View File

@ -448,6 +448,9 @@ class Torrent:
def resume(self): def resume(self):
"""Resumes this torrent""" """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": if self.state == "Paused" or self.state == "Error":
# Reset the status message just in case of resuming an Error'd torrent # Reset the status message just in case of resuming an Error'd torrent
self.set_status_message("OK") self.set_status_message("OK")