From cf437b6a3322c20e4ade3e7b05ec2d4050a922b2 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 7 Oct 2015 00:17:33 +0100 Subject: [PATCH] [Core] Add handle.clear_error to resume --- deluge/core/torrent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index a852820b7..a243b9eeb 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -853,7 +853,6 @@ class Torrent(object): if self.handle.is_paused() and self.handle.is_auto_managed(): log.debug("Torrent is being auto-managed, cannot resume!") - return elif self.forced_error and self.forced_error.was_paused: log.debug("Skip resuming Error state torrent that was originally paused.") else: @@ -881,6 +880,8 @@ class Torrent(object): if self.forced_error and not self.forced_error.restart_to_resume: self.clear_forced_error_state() + elif self.state == "Error" and not self.forced_error: + self.handle.clear_error() def connect_peer(self, ip, port): """adds manual peer"""