Ticket #1992: loop-until-death.patch

File loop-until-death.patch, 535 bytes (added by wereHamster, 13 years ago)

Not even runtime tested, side-effects unknown, use at your own risk

  • libtransmission/trevent.c

    diff --git a/libtransmission/trevent.c b/libtransmission/trevent.c
    index 45d641f..860f3e5 100644
    a b libeventThreadFunc( void * veh ) 
    234234    event_add( &eh->pipeEvent, NULL );
    235235    event_set_log_callback( logFunc );
    236236
    237     /* loop until all the events are done */
    238     event_dispatch( );
     237    /* loop until we are instructed to die */
     238    while( eh->die == FALSE )
     239        event_dispatch( );
    239240
    240241    /* shut down the thread */