Browse Source

Prevent new torrent from saving resume data twice

PR #17951.
adaptive-webui-19844
Vladimir Golovnev 2 years ago committed by GitHub
parent
commit
e19173c1f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/base/bittorrent/sessionimpl.cpp

3
src/base/bittorrent/sessionimpl.cpp

@ -2753,6 +2753,9 @@ bool SessionImpl::addTorrent_impl(const std::variant<MagnetUri, TorrentInfo> &so @@ -2753,6 +2753,9 @@ bool SessionImpl::addTorrent_impl(const std::variant<MagnetUri, TorrentInfo> &so
p.flags |= lt::torrent_flags::duplicate_is_error;
// Prevent torrent from saving initial resume data twice
p.flags &= ~lt::torrent_flags::need_save_resume;
p.added_time = std::time(nullptr);
// Limits

Loading…
Cancel
Save