From 08bfdf883bcdd08149884d64dd60f9057aa7ea8c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 9 Apr 2014 19:54:02 +0200 Subject: [PATCH] tvhlog - do not queue messages when log is not running --- src/tvhlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tvhlog.c b/src/tvhlog.c index 772fbd86..343e9909 100644 --- a/src/tvhlog.c +++ b/src/tvhlog.c @@ -270,7 +270,7 @@ void tvhlogv ( const char *file, int line, pthread_mutex_lock(&tvhlog_mutex); /* Check for full */ - if (tvhlog_queue_full) { + if (tvhlog_queue_full || !tvhlog_run) { pthread_mutex_unlock(&tvhlog_mutex); return; }