summaryrefslogtreecommitdiff
path: root/ot_clean.c
diff options
context:
space:
mode:
authorerdgeist <>2008-12-07 03:50:51 +0000
committererdgeist <>2008-12-07 03:50:51 +0000
commitc6947b160f99278057df0770b849b46264b72229 (patch)
tree8c5e543648458f7368d51906c53a9e1b45a8c364 /ot_clean.c
parentad8c9ee1efac171e5f3a8f41a630254ac88357a8 (diff)
Handle program end more politely
Diffstat (limited to 'ot_clean.c')
-rw-r--r--ot_clean.c2
1 files changed, 2 insertions, 0 deletions
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 ) {
114 } 114 }
115 } 115 }
116 mutex_bucket_unlock( bucket ); 116 mutex_bucket_unlock( bucket );
117 if( !g_opentracker_running )
118 return NULL;
117 usleep( OT_CLEAN_SLEEP ); 119 usleep( OT_CLEAN_SLEEP );
118 } 120 }
119 } 121 }