Fix state not loading after async API change
This commit is contained in:
parent
07a87fa15a
commit
c13622a1e6
@ -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…
x
Reference in New Issue
Block a user