]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
notify: add missing lock
authorJaroslav Kysela <perex@perex.cz>
Fri, 12 Jan 2018 18:31:31 +0000 (19:31 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 12 Jan 2018 18:31:31 +0000 (19:31 +0100)
src/notify.c

index e05ec92be98418810528a016285fc94fc7f18f1c..691d6cd313c0a86ebaee3ad0b91c2cbc53aff14f 100644 (file)
@@ -132,7 +132,9 @@ void notify_init( void )
 
 void notify_done( void )
 {
+  pthread_mutex_lock(&notify_mutex);
   tvh_cond_signal(&notify_cond, 0);
+  pthread_mutex_unlock(&notify_mutex);
   pthread_join(notify_tid, NULL);
   pthread_mutex_lock(&notify_mutex);
   htsmsg_destroy(notify_queue);