]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
tvhlog - do not queue messages when log is not running
authorJaroslav Kysela <perex@perex.cz>
Wed, 9 Apr 2014 17:54:02 +0000 (19:54 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 5 May 2014 20:00:35 +0000 (22:00 +0200)
src/tvhlog.c

index 772fbd86c16e9dfe380412bfbe5845efbc237099..343e9909aaa112d712eefceb997f7af4e95d1423 100644 (file)
@@ -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;
   }