From 72fe1b7bea1844a73929fa6ba4b74e632c1c5524 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 22 May 2009 19:32:49 +0000 Subject: [PATCH] (trunk libT) try to smoke out the cause of #1992 --- libtransmission/trevent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/trevent.c b/libtransmission/trevent.c index 60909c87a..8f3637274 100644 --- a/libtransmission/trevent.c +++ b/libtransmission/trevent.c @@ -235,8 +235,8 @@ libeventThreadFunc( void * veh ) event_set_log_callback( logFunc ); /* loop until all the events are done */ - while( !eh->die ) - event_dispatch( ); + event_dispatch( ); + assert( eh->die ); /* shut down the thread */ tr_lockFree( eh->lock );