From 6e089ef09500abea01105f5694991d0062972c40 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 21 May 2009 22:26:18 +0000 Subject: [PATCH] (trunk libT) #1992: could it really be this easy? if it is, wereHamster deserves the credit. if not, at least it was easy --- libtransmission/trevent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libtransmission/trevent.c b/libtransmission/trevent.c index 45d641f31..60909c87a 100644 --- a/libtransmission/trevent.c +++ b/libtransmission/trevent.c @@ -235,7 +235,8 @@ libeventThreadFunc( void * veh ) event_set_log_callback( logFunc ); /* loop until all the events are done */ - event_dispatch( ); + while( !eh->die ) + event_dispatch( ); /* shut down the thread */ tr_lockFree( eh->lock );