summaryrefslogtreecommitdiffstats
path: root/gisi/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'gisi/client.c')
-rw-r--r--gisi/client.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gisi/client.c b/gisi/client.c
index c592c3c9..f0db24ea 100644
--- a/gisi/client.c
+++ b/gisi/client.c
@@ -431,16 +431,15 @@ static gboolean g_isi_callback(GIOChannel *channel, GIOCondition cond,
msg = (uint8_t *)buf;
+ if (cl->debug_func)
+ cl->debug_func(msg + 1, len - 1, cl->debug_data);
+
if (indication) {
/* Message ID at offset 1 */
id = msg[1];
if (cl->ind.func[id] == NULL)
return TRUE; /* Unsubscribed indication */
- if (cl->debug_func)
- cl->debug_func(msg + 1, len - 1,
- cl->debug_data);
-
cl->ind.func[id](cl, msg + 1, len - 1, obj,
cl->ind.data[id]);
} else {
@@ -449,10 +448,6 @@ static gboolean g_isi_callback(GIOChannel *channel, GIOCondition cond,
if (cl->func[id] == NULL)
return TRUE; /* Bad transaction ID */
- if (cl->debug_func)
- cl->debug_func(msg + 1, len - 1,
- cl->debug_data);
-
if ((cl->func[id])(cl, msg + 1, len - 1, obj,
cl->data[id]))
g_isi_request_cancel(g_isi_req(cl, id));