[Core] Ensure valid torrent state value after init
This commit is contained in:
parent
f36ecc470b
commit
ac9e11d732
@ -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.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user