From 30bd8b2c0f08d2a8e571f4a2db3ece347a64f87a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 12 Apr 2008 10:27:53 +0000 Subject: Fix a deadlock after pause/next Oops, forgot to unlock a mutex git-svn-id: https://svn.musicpd.org/mpd/trunk@7348 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/main_notify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main_notify.c b/src/main_notify.c index bb5db8259..a358a7053 100644 --- a/src/main_notify.c +++ b/src/main_notify.c @@ -126,5 +126,6 @@ void wait_main_task(void) pthread_mutex_lock(&main_wakeup_mutex); pthread_cond_wait(&main_wakeup, &main_wakeup_mutex); + pthread_mutex_unlock(&main_wakeup_mutex); } -- cgit v1.2.3