Ignore:
Timestamp:
Feb 7, 2006, 2:32:50 AM (16 years ago)
Author:
titer
Message:

Force rates to 0 when paused, and download rate to 0 when seeding.
Increased OS X UI update interval to 1 second.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/ratecontrol.c

    r87 r92  
    145145}
    146146
    147 void tr_rcClose( tr_ratecontrol_t * r )
     147void tr_rcReset( tr_ratecontrol_t * r )
    148148{
    149149    tr_transfer_t * t, * next;
     150
     151    tr_lockLock( &r->lock );
    150152    for( t = r->first; t; )
    151153    {
     
    154156        t = next;
    155157    }
     158    r->first = NULL;
     159    r->last  = NULL;
     160    tr_lockUnlock( &r->lock );
     161}
     162
     163void tr_rcClose( tr_ratecontrol_t * r )
     164{
     165    tr_rcReset( r );
    156166    tr_lockClose( &r->lock );
    157167    free( r );
Note: See TracChangeset for help on using the changeset viewer.