diff options
Diffstat (limited to 'src/thread-pool.c')
-rw-r--r-- | src/thread-pool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/thread-pool.c b/src/thread-pool.c index b27c0441..ac508b11 100644 --- a/src/thread-pool.c +++ b/src/thread-pool.c @@ -78,7 +78,9 @@ static void *worker_thread(void *pargsv) pthread_mutex_lock(&q->lock); q->status[mytask] = TASK_FINISHED; q->n_done++; - progress_bar(q->n_done, q->n_tasks, q->text); + if ( q->text != NULL ) { + progress_bar(q->n_done, q->n_tasks, q->text); + } pthread_mutex_unlock(&q->lock); } while ( 1 ); |