[Core] Ensure valid torrent state value after init

This commit is contained in:
bendikro 2015-11-24 00:39:28 +01:00 committed by Calum Lind
parent f36ecc470b
commit ac9e11d732

View file

@ -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.")