Ignore:
Timestamp:
Jun 10, 2008, 7:25:18 PM (14 years ago)
Author:
charles
Message:

(libT) add NULL pointer checks to tr_torrentStart(), tr_torrentStop()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r6121 r6124  
    116116
    117117    /* set a timer for the next pulse */
    118     if( EVBUFFER_LENGTH( server->in ) || EVBUFFER_LENGTH( server->out ) ) {
     118    if( EVBUFFER_LENGTH( server->in ) || EVBUFFER_LENGTH( server->out ) )
    119119        interval = BUSY_INTERVAL_MSEC;
    120     } else if( now - server->lastRequestTime < 300 ) {
     120    else if( now - server->lastRequestTime < 300 )
    121121        interval = IDLE_INTERVAL_MSEC;
    122     } else {
     122    else
    123123        interval = UNUSED_INTERVAL_MSEC;
    124     }
    125124    tv = tr_timevalMsec( interval );
    126125    evtimer_add( &server->timer, &tv );
Note: See TracChangeset for help on using the changeset viewer.