From 7e7feeb2d8ae9b934fe35baf28dbee168dc789c6 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 16 Jun 2008 23:14:21 +0000 Subject: [PATCH] Update the state of a torrent before attempting to resume. This is an attempt to fix #283 --- deluge/core/torrent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index c57aaaf72..9dfa6d343 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -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")