mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix state not loading after async API change
This commit is contained in:
parent
07a87fa15a
commit
c13622a1e6
1 changed files with 8 additions and 2 deletions
|
@ -675,8 +675,14 @@ class TorrentManager(component.Component):
|
||||||
magnet = None
|
magnet = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
d = self.add(torrent_info=torrent_info, state=t_state, options=options, save_state=False,
|
d = self.add_async(
|
||||||
magnet=magnet, resume_data=resume_data.get(t_state.torrent_id))
|
torrent_info=torrent_info,
|
||||||
|
state=t_state,
|
||||||
|
options=options,
|
||||||
|
save_state=False,
|
||||||
|
magnet=magnet,
|
||||||
|
resume_data=resume_data.get(t_state.torrent_id),
|
||||||
|
)
|
||||||
except AddTorrentError as ex:
|
except AddTorrentError as ex:
|
||||||
log.warn('Error when adding torrent "%s" to session: %s', t_state.torrent_id, ex)
|
log.warn('Error when adding torrent "%s" to session: %s', t_state.torrent_id, ex)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue