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:
parent
4243a33e01
commit
9b69c7d5ff
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue