Changeset 1155
- Timestamp:
- Dec 5, 2006, 7:03:10 PM (16 years ago)
- Location:
- branches/multitracker/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multitracker/libtransmission/metainfo.c
r1154 r1155 276 276 { 277 277 tr_err( "No \"announce\" entry" ); 278 free( address ); 279 free( announce ); 280 278 281 tr_bencFree( &meta ); 279 282 return 1; … … 283 286 { 284 287 tr_err( "Invalid announce URL (%s)", val->val.s.s ); 288 free( address ); 289 free( announce ); 290 285 291 tr_bencFree( &meta ); 286 292 return 1; -
branches/multitracker/libtransmission/tracker.c
r1154 r1155 49 49 int lastScrapeFailed; 50 50 51 int should setAnnounce;51 int shouldChangeAnnounce; 52 52 int announceTier; 53 53 int announceTierLast; … … 156 156 157 157 tc->announceTierLast++; 158 tc->should setAnnounce = 1;158 tc->shouldChangeAnnounce = 1; 159 159 160 160 /* If there are no more trackers don't try to change the announce */ … … 170 170 if( announceItem == NULL ) 171 171 { 172 tc->should setAnnounce = 0;172 tc->shouldChangeAnnounce = 0; 173 173 } 174 174 } … … 180 180 181 181 /* Last tracker failed, try next */ 182 if( tc->should setAnnounce )182 if( tc->shouldChangeAnnounce ) 183 183 { 184 184 return 1; … … 255 255 256 256 /* in process of changing tracker or scrape not supported */ 257 if( tc->should setAnnounce || !inf->trackerCanScrape )257 if( tc->shouldChangeAnnounce || !inf->trackerCanScrape ) 258 258 { 259 259 return 0; … … 287 287 if( ( NULL == tc->http ) && shouldConnect( tc ) ) 288 288 { 289 if( tc->should setAnnounce )289 if( tc->shouldChangeAnnounce ) 290 290 { 291 291 tr_err( "Tracker: %s failed to connect, trying next", inf->trackerAddress ); … … 313 313 setAnnounce( tc, announceItem ); 314 314 315 tc->should setAnnounce = 0;315 tc->shouldChangeAnnounce = 0; 316 316 } 317 317 else … … 353 353 354 354 failureAnnouncing( tc ); 355 if ( tc->should setAnnounce )355 if ( tc->shouldChangeAnnounce ) 356 356 { 357 357 tr_trackerPulse( tc ); … … 365 365 366 366 /* Something happened to need to try next address */ 367 if ( tc->should setAnnounce )367 if ( tc->shouldChangeAnnounce ) 368 368 { 369 369 tr_trackerPulse( tc );
Note: See TracChangeset
for help on using the changeset viewer.