Changeset 3092


Ignore:
Timestamp:
Sep 17, 2007, 12:18:23 AM (15 years ago)
Author:
charles
Message:

remove duplicate `got pex' event

Location:
branches/encryption/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/encryption/libtransmission/peer-mgr.c

    r3089 r3092  
    488488        case TR_PEERMSG_NEED_REQ:
    489489            if( t->refillTimer == NULL )
    490                 t->refillTimer = tr_timerNew( t->manager->handle, refillPulse, t, REFILL_PERIOD_MSEC );
     490                t->refillTimer = tr_timerNew( t->manager->handle,
     491                                              refillPulse, t,
     492                                              REFILL_PERIOD_MSEC );
    491493            break;
    492494
     
    497499        case TR_PEERMSG_CLIENT_BLOCK:
    498500            broadcastGotBlock( t, e->pieceIndex, e->offset, e->length );
    499             break;
    500 
    501         case TR_PEERMSG_GOT_PEX:
    502             /* FIXME */
    503501            break;
    504502
  • branches/encryption/libtransmission/peer-msgs.c

    r3090 r3092  
    105105    tr_timer * pexTimer;
    106106
     107    struct peer_request blockToUs; /* the block currntly being sent to us */
     108
     109    time_t gotKeepAliveTime;
     110    time_t clientSentPexAt;
     111
    107112    unsigned int notListening    : 1;
    108113    unsigned int peerSupportsPex : 1;
    109 
    110     struct peer_request blockToUs; /* the block currntly being sent to us */
    111 
    112     time_t gotKeepAliveTime;
    113     time_t clientSentPexAt;
    114114
    115115    uint8_t state;
     
    137137    e.eventType = eventType;
    138138    tr_publisherPublish( peer->publisher, peer, &e );
    139 }
    140 
    141 static void
    142 fireGotPex( tr_peermsgs * peer )
    143 {
    144     publishEvent( peer, TR_PEERMSG_GOT_PEX );
    145139}
    146140
     
    458452                            (uint8_t*)sub->val.s.s, n );
    459453    }
    460 
    461     fireGotPex( msgs );
    462454
    463455    tr_bencFree( &val );
  • branches/encryption/libtransmission/peer-msgs.h

    r3089 r3092  
    5959    TR_PEERMSG_CLIENT_HAVE,
    6060    TR_PEERMSG_CLIENT_BLOCK,
    61     TR_PEERMSG_GOT_PEX,
    6261    TR_PEERMSG_GOT_ERROR,
    6362    TR_PEERMSG_NEED_REQ
Note: See TracChangeset for help on using the changeset viewer.