From c6947b160f99278057df0770b849b46264b72229 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sun, 7 Dec 2008 03:50:51 +0000 Subject: Handle program end more politely --- ot_clean.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ot_clean.c') diff --git a/ot_clean.c b/ot_clean.c index 2173c27..4adeee6 100644 --- a/ot_clean.c +++ b/ot_clean.c @@ -114,6 +114,8 @@ static void * clean_worker( void * args ) { } } mutex_bucket_unlock( bucket ); + if( !g_opentracker_running ) + return NULL; usleep( OT_CLEAN_SLEEP ); } } -- cgit v1.2.3