]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
moot leak in logger since it only happens on shutdown 1/10 times but hey, lets fix it
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 28 Jun 2012 15:10:13 +0000 (10:10 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 28 Jun 2012 15:10:30 +0000 (10:10 -0500)
src/switch_log.c

index 1bd931a44e1cb1a3756d3cb16a539bfa044dcfa4..9799a3698f00664d1c05b5a8eb6f67755fd9aeeb 100644 (file)
@@ -296,6 +296,7 @@ static void *SWITCH_THREAD_FUNC log_thread(switch_thread_t *t, void *obj)
                }
 
                if (!pop) {
+                       THREAD_RUNNING = -1;
                        break;
                }
 
@@ -558,7 +559,7 @@ SWITCH_DECLARE(switch_status_t) switch_log_shutdown(void)
 {
        switch_status_t st;
 
-       THREAD_RUNNING = -1;
+
        switch_queue_push(LOG_QUEUE, NULL);
        while (THREAD_RUNNING) {
                switch_cond_next();