From b37e7b0340ed65458e9163f57bebf3e98dd6159d Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 21 Aug 2019 15:37:39 +0800 Subject: [PATCH] Always save info dict when saving fastresume Otherwise torrents loaded from fastresume won't have it and needs to redownload it from elsewhere and slowing down the startup process. This is also required for the future where we will drop loading the `info` dict from .torrent files. --- src/base/bittorrent/torrenthandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index ec1528e2c..d21658d0f 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -508,7 +508,7 @@ bool TorrentHandle::needSaveResumeData() const void TorrentHandle::saveResumeData() { - m_nativeHandle.save_resume_data(); + m_nativeHandle.save_resume_data(lt::torrent_handle::save_info_dict); m_session->handleTorrentSaveResumeDataRequested(this); }