From ac9e11d732815f75ea0a00d75f998f64b91f5d4d Mon Sep 17 00:00:00 2001 From: bendikro Date: Tue, 24 Nov 2015 00:39:28 +0100 Subject: [PATCH] [Core] Ensure valid torrent state value after init --- deluge/core/torrent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 7b58e846e..db1ad8d41 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -264,6 +264,7 @@ class Torrent(object): self.update_status(self.handle.status()) self._create_status_funcs() self.set_options(self.options) + self.update_state() if log.isEnabledFor(logging.DEBUG): log.debug("Torrent object created.")