Don't deliver empty resume_data parameter to session.add_torrent
Fixes a libtorrent crash on python 2.7 on Windows
This commit is contained in:
parent
8cb55983bb
commit
f3722ebc4f
|
@ -383,7 +383,8 @@ class TorrentManager(component.Component):
|
||||||
resume_data = self.legacy_get_resume_data_from_file(state.torrent_id)
|
resume_data = self.legacy_get_resume_data_from_file(state.torrent_id)
|
||||||
self.legacy_delete_resume_data(state.torrent_id)
|
self.legacy_delete_resume_data(state.torrent_id)
|
||||||
|
|
||||||
add_torrent_params["resume_data"] = resume_data
|
if resume_data:
|
||||||
|
add_torrent_params["resume_data"] = resume_data
|
||||||
else:
|
else:
|
||||||
# We have a torrent_info object or magnet uri so we're not loading from state.
|
# We have a torrent_info object or magnet uri so we're not loading from state.
|
||||||
if torrent_info:
|
if torrent_info:
|
||||||
|
|
Loading…
Reference in New Issue