mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
Fix invalidating the torrent status and torrent_info prior to building
the status dict
This commit is contained in:
parent
9698b36523
commit
e0356b7f10
1 changed files with 3 additions and 3 deletions
|
@ -464,9 +464,6 @@ class Torrent:
|
||||||
"peers": self.get_peers,
|
"peers": self.get_peers,
|
||||||
}
|
}
|
||||||
|
|
||||||
self.status = None
|
|
||||||
self.torrent_info = None
|
|
||||||
|
|
||||||
# Create the desired status dictionary and return it
|
# Create the desired status dictionary and return it
|
||||||
status_dict = {}
|
status_dict = {}
|
||||||
|
|
||||||
|
@ -481,6 +478,9 @@ class Torrent:
|
||||||
elif key in fns:
|
elif key in fns:
|
||||||
status_dict[key] = fns[key]()
|
status_dict[key] = fns[key]()
|
||||||
|
|
||||||
|
self.status = None
|
||||||
|
self.torrent_info = None
|
||||||
|
|
||||||
return status_dict
|
return status_dict
|
||||||
|
|
||||||
def apply_options(self):
|
def apply_options(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue