mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
[Core] Ensure valid torrent state value after init
This commit is contained in:
parent
f36ecc470b
commit
ac9e11d732
1 changed files with 1 additions and 0 deletions
|
@ -264,6 +264,7 @@ class Torrent(object):
|
||||||
self.update_status(self.handle.status())
|
self.update_status(self.handle.status())
|
||||||
self._create_status_funcs()
|
self._create_status_funcs()
|
||||||
self.set_options(self.options)
|
self.set_options(self.options)
|
||||||
|
self.update_state()
|
||||||
|
|
||||||
if log.isEnabledFor(logging.DEBUG):
|
if log.isEnabledFor(logging.DEBUG):
|
||||||
log.debug("Torrent object created.")
|
log.debug("Torrent object created.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue