Changeset 3247 for trunk/libtransmission/peer-mgr.c
- Timestamp:
- Oct 1, 2007, 4:12:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-mgr.c
r3245 r3247 1087 1087 { 1088 1088 const Torrent * t = getExistingTorrent( (tr_peerMgr*)manager, torrentHash ); 1089 const int isLocked = torrentIsLocked( t ); 1089 1090 int i, peerCount; 1090 const int isLocked = torrentIsLocked( t ); 1091 const tr_peer ** peers = (const tr_peer **) tr_ptrArrayPeek( t->peers, &peerCount ); 1092 tr_pex * pex = tr_new( tr_pex, peerCount ); 1093 tr_pex * walk = pex; 1091 const tr_peer ** peers; 1092 tr_pex * pex; 1093 tr_pex * walk; 1094 1094 1095 1095 if( !isLocked ) 1096 1096 torrentLock( (Torrent*)t ); 1097 1097 1098 t = getExistingTorrent( (tr_peerMgr*)manager, torrentHash );1099 1098 peers = (const tr_peer **) tr_ptrArrayPeek( t->peers, &peerCount ); 1100 1099 pex = walk = tr_new( tr_pex, peerCount ); … … 1533 1532 + tr_peerIoGetRateToClient( peer->io ); 1534 1533 1534 assert( atom != NULL ); 1535 1535 1536 /* if we're both seeds, give a little bit of time for 1536 1537 * a mutual pex -- peer-msgs initiates a pex exchange
Note: See TracChangeset
for help on using the changeset viewer.