Changeset 3319


Ignore:
Timestamp:
Oct 8, 2007, 12:56:12 AM (15 years ago)
Author:
charles
Message:

fix minor shutdown bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/trevent.c

    r3249 r3319  
    109109{
    110110    tr_event_handle * eh = veh;
    111 
    112     while( !eh->die )
     111    int doDie;
     112
     113    for( ;; )
    113114    {
    114115        struct tr_event_command * cmd;
     116
     117        doDie = eh->die && !eh->timerCount;
     118        if( doDie )
     119            break;
    115120
    116121        /* get the next command */
     
    162167    }
    163168
    164     if( !eh->die )
     169    if( !doDie )
    165170        timeout_add( &eh->pulse, &eh->pulseInterval );
    166171    else {
Note: See TracChangeset for help on using the changeset viewer.