[Core] Retain magnet details when loading state

It is useful to keep the magnet uri even with the torrent_info. When
adding the torrent magnet details are only used if torrent_info is not
available.
This commit is contained in:
Calum Lind 2018-09-28 14:05:54 +01:00
parent f93e5e60b5
commit 34b0fdff1d

View File

@ -762,8 +762,6 @@ class TorrentManager(component.Component):
torrent_info = self.get_torrent_info_from_file(
os.path.join(self.state_dir, t_state.torrent_id + '.torrent'),
)
if torrent_info:
magnet = None
try:
d = self.add_async(