1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-30 10:52:00 +00:00

Don't force fetch metainfo at startup and new torrents. (#4895)

This commit is contained in:
Cœur 2023-02-15 12:19:47 +08:00 committed by GitHub
parent 4243a33e01
commit 9b69c7d5ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1191,7 +1191,7 @@ void torrentInit(tr_torrent* tor, tr_ctor const* ctor)
{
on_metainfo_completed(tor);
}
else if (tor->start_when_stable || !has_metainfo)
else if (tor->start_when_stable)
{
auto opts = torrent_start_opts{};
opts.bypass_queue = !has_metainfo; // to fetch metainfo from peers

View file

@ -601,8 +601,8 @@ void tr_sessionSetAntiBruteForceEnabled(tr_session* session, bool enabled);
/** @brief Like `tr_torrentStart()`, but resumes right away regardless of the queues. */
void tr_torrentStartNow(tr_torrent* tor);
/** @brief DEPRECATED. Equivalent to tr_torrentStart(). Use that instead. */
void tr_torrentStartMagnet(tr_torrent*);
/** @brief DEPRECATED. Equivalent to `tr_torrentStart()`. Use that instead. */
void tr_torrentStartMagnet(tr_torrent* tor);
/** @brief Return the queued torrent's position in the queue it's in. [0...n) */
size_t tr_torrentGetQueuePosition(tr_torrent const* tor);