tvhlog - do not queue messages when log is not running

This commit is contained in:
Jaroslav Kysela 2014-04-09 19:54:02 +02:00
parent 8583936c71
commit 08bfdf883b

View 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;
}