Changeset 14650


Ignore:
Timestamp:
Dec 31, 2015, 2:33:02 PM (6 years ago)
Author:
mikedld
Message:

#5407: In tr_peerMgrGetDesiredAvailable(), check if swarm is running (suggested by x190)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r14644 r14650  
    26202620  /* common shortcuts... */
    26212621
    2622   if (!tor->isRunning || tor->isStopping)
     2622  if (!tor->isRunning || tor->isStopping ||
     2623      tr_torrentIsSeed (tor) || !tr_torrentHasMetadata (tor))
    26232624    return 0;
    26242625
    2625   if (tr_torrentIsSeed (tor))
    2626     return 0;
    2627 
    2628   if (!tr_torrentHasMetadata (tor))
    2629     return 0;
    2630 
    26312626  s = tor->swarm;
    2632   if (s == NULL)
     2627  if (s == NULL || !s->isRunning)
    26332628    return 0;
    26342629
Note: See TracChangeset for help on using the changeset viewer.