Changeset 3052


Ignore:
Timestamp:
Sep 12, 2007, 11:20:18 AM (14 years ago)
Author:
charles
Message:

fix timer count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/encryption/libtransmission/trevent.c

    r3050 r3052  
    127127            case TR_EV_TIMER_ADD:
    128128                timeout_add( &cmd->timer->event, &cmd->timer->tv );
     129                ++eh->timerCount;
    129130                break;
    130131
     
    391392    timeout_set( &timer->event, timerCallback, timer );
    392393
    393     if( tr_amInThread( handle->events->thread ) )
     394    if( tr_amInThread( handle->events->thread ) ) {
    394395        timeout_add( &timer->event,  &timer->tv );
    395     else {
     396        ++handle->events->timerCount;
     397    } else {
    396398        struct tr_event_command * cmd = tr_new0( struct tr_event_command, 1 );
    397399        cmd->mode = TR_EV_TIMER_ADD;
    398400        cmd->timer = timer;
    399401        pushList( handle->events, cmd );
    400         ++handle->events->timerCount;
    401402    }
    402403
Note: See TracChangeset for help on using the changeset viewer.