Don't miss to store metadata of new torrent

PR #18033.
This commit is contained in:
Vladimir Golovnev 2022-11-19 13:33:38 +03:00 committed by GitHub
parent f54b66eb75
commit 1cee69da6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -5359,6 +5359,8 @@ TorrentImpl *SessionImpl::createTorrent(const lt::torrent_handle &nativeHandle,
if (isRestored())
{
torrent->saveResumeData(lt::torrent_handle::save_info_dict);
// The following is useless for newly added magnet
if (torrent->hasMetadata())
{