[Xfce4-commits] [apps/xfmpc] 01/03: unlock mutex in connect instead of connect_thread, otherwise we'd try to unlock an unlocked mutex (#10366)
noreply at xfce.org
noreply at xfce.org
Wed Jun 29 22:28:35 CEST 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository apps/xfmpc.
commit 40ab9d4da5b687635ae813026316537cb0e89fa9
Author: Landry Breuil <landry at xfce.org>
Date: Wed Jun 29 22:20:54 2016 +0200
unlock mutex in connect instead of connect_thread, otherwise we'd try to unlock an unlocked mutex (#10366)
---
src/mpdclient.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mpdclient.c b/src/mpdclient.c
index c5fc747..cdcd74b 100644
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
@@ -389,8 +389,6 @@ xfmpc_mpdclient_connect_thread (XfmpcMpdclient *mpdclient)
priv->connecting = FALSE;
- g_mutex_unlock (priv->mutex);
-
return NULL;
}
@@ -427,6 +425,8 @@ xfmpc_mpdclient_connect (XfmpcMpdclient *mpdclient)
g_signal_emit (mpdclient, signals[SIG_CONNECTED], 0);
+ g_mutex_unlock (priv->mutex);
+
return TRUE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list