From: Jaroslav Kysela Date: Fri, 12 Jan 2018 18:31:31 +0000 (+0100) Subject: notify: add missing lock X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b162ee7aa9b5b33fe43261dca2d3cb9fc21f2861;p=thirdparty%2Ftvheadend.git notify: add missing lock --- diff --git a/src/notify.c b/src/notify.c index e05ec92be..691d6cd31 100644 --- a/src/notify.c +++ b/src/notify.c @@ -132,7 +132,9 @@ void notify_init( void ) void notify_done( void ) { + pthread_mutex_lock(¬ify_mutex); tvh_cond_signal(¬ify_cond, 0); + pthread_mutex_unlock(¬ify_mutex); pthread_join(notify_tid, NULL); pthread_mutex_lock(¬ify_mutex); htsmsg_destroy(notify_queue);