From: Jaroslav Kysela Date: Wed, 9 Apr 2014 17:54:02 +0000 (+0200) Subject: tvhlog - do not queue messages when log is not running X-Git-Tag: v4.1~2115^2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08bfdf883bcdd08149884d64dd60f9057aa7ea8c;p=thirdparty%2Ftvheadend.git tvhlog - do not queue messages when log is not running --- diff --git a/src/tvhlog.c b/src/tvhlog.c index 772fbd86c..343e9909a 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; }