Ignore:
Timestamp:
Mar 17, 2011, 12:45:29 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) move tr_lpdAnnounceMore() out of the announcer module

We can stop local peer discovery immediately during shutdown, but need to leave the announcer running for the event=stopped messages. So it doesn't make sense to keep them on the same periodic timer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r12181 r12182  
    2929#include "ptrarray.h"
    3030#include "session.h"
    31 #include "tr-lpd.h"
    3231#include "torrent.h"
    3332#include "utils.h"
     
    6362
    6463    UPKEEP_INTERVAL_SECS = 1,
    65 
    66     /* this is an upper limit for the frequency of LDS announces */
    67     LPD_HOUSEKEEPING_INTERVAL_SECS = 5,
    6864
    6965    /* this is how often to call the UDP tracker upkeep */
     
    15061502    announceMore( announcer );
    15071503
    1508     /* LPD upkeep */
    1509     if( announcer->lpdUpkeepAt <= now ) {
    1510         const int seconds = LPD_HOUSEKEEPING_INTERVAL_SECS;
    1511         announcer->lpdUpkeepAt = now + jitterize( seconds );
    1512         tr_lpdAnnounceMore( now, seconds );
    1513     }
    1514 
    15151504    /* TAU upkeep */
    15161505    if( announcer->tauUpkeepAt <= now ) {
Note: See TracChangeset for help on using the changeset viewer.