darkk storage xmms2 git diff diff --git src xmms ipc src xmms ipc inde

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
darkk@storage ~/xmms2 $ git diff
diff --git a/src/xmms/ipc.c b/src/xmms/ipc.c
index d9cbe3f..34710eb 100644
--- a/src/xmms/ipc.c
+++ b/src/xmms/ipc.c
@@ -590,14 +590,12 @@ xmms_ipc_source_accept (GIOChannel *chan, GIOCondition cond, gpointer data)
return TRUE;
}
+ g_mutex_lock (ipc->mutex_lock);
client = xmms_ipc_client_new (ipc, transport);
- if (!client) {
+ if (client)
+ ipc->clients = g_list_append (ipc->clients, client);
+ else
xmms_ipc_transport_destroy (transport);
- return TRUE;
- }
-
- g_mutex_lock (ipc->mutex_lock);
- ipc->clients = g_list_append (ipc->clients, client);
g_mutex_unlock (ipc->mutex_lock);
return TRUE;