mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
Fix issue where a new lt state will cause an uncaught exception
This commit is contained in:
parent
c1f137505a
commit
e79461c7d2
1 changed files with 4 additions and 0 deletions
|
@ -331,6 +331,10 @@ class Torrent:
|
||||||
LTSTATE = deluge.common.LT_TORRENT_STATE
|
LTSTATE = deluge.common.LT_TORRENT_STATE
|
||||||
ltstate = int(self.handle.status().state)
|
ltstate = int(self.handle.status().state)
|
||||||
|
|
||||||
|
# Set self.state to the ltstate right away just incase we don't hit some
|
||||||
|
# of the logic below
|
||||||
|
self.state = str(ltstate)
|
||||||
|
|
||||||
log.debug("set_state_based_on_ltstate: %s", deluge.common.LT_TORRENT_STATE[ltstate])
|
log.debug("set_state_based_on_ltstate: %s", deluge.common.LT_TORRENT_STATE[ltstate])
|
||||||
log.debug("session.is_paused: %s", component.get("Core").session.is_paused())
|
log.debug("session.is_paused: %s", component.get("Core").session.is_paused())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue