Changeset 10716 for trunk/libtransmission/announcer.c
- Timestamp:
- Jun 3, 2010, 4:37:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/announcer.c
r10697 r10716 1537 1537 assert( tr_isTorrent( tier->tor ) ); 1538 1538 1539 /* special case #1: if "stopped" is in the queue, ignore everything before it */1540 1539 events = (const char**) tr_ptrArrayPeek( &tier->announceEvents, &n ); 1540 1541 /* special case #1: if "stopped" is in the queue, 1542 * ignore everything before it except "completed" */ 1541 1543 if( pos == -1 ) { 1542 for( i=0; i<n; ++i ) 1544 tr_bool completed = FALSE; 1545 for( i = 0; i < n; ++i ) { 1546 if( !strcmp( events[i], "completed" ) ) 1547 completed = TRUE; 1543 1548 if( !strcmp( events[i], "stopped" ) ) 1544 1549 break; 1545 if( i < n ) 1550 } 1551 if( !completed && ( i < n ) ) 1546 1552 pos = i; 1547 1553 }
Note: See TracChangeset
for help on using the changeset viewer.