diff options
author | erdgeist <> | 2008-12-07 03:50:51 +0000 |
---|---|---|
committer | erdgeist <> | 2008-12-07 03:50:51 +0000 |
commit | c6947b160f99278057df0770b849b46264b72229 (patch) | |
tree | 8c5e543648458f7368d51906c53a9e1b45a8c364 /ot_clean.c | |
parent | ad8c9ee1efac171e5f3a8f41a630254ac88357a8 (diff) |
Handle program end more politely
Diffstat (limited to 'ot_clean.c')
-rw-r--r-- | ot_clean.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 | } |