Diff between f59bdb51b16d2a3f8dbff7705c8534d94818ebdc and 693f759cc21cfd7d1859386db5076640298cffe8
Changed Files
| File | Additions | Deletions | Status |
| attrib/gattrib.c | +4 | -4 | modified |
Full Patch
diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index f95f2fb..37581a3 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -446,6 +446,10 @@ static gboolean received_data(GIOChannel *io, GIOCondition cond, gpointer data)
status = 0;
done:
+ if (!g_queue_is_empty(attrib->requests) ||
+ !g_queue_is_empty(attrib->responses))
+ wake_up_sender(attrib);
+
if (cmd) {
if (cmd->func)
cmd->func(status, buf, len, cmd->user_data);
@@ -453,10 +457,6 @@ done:
command_destroy(cmd);
}
- if (!g_queue_is_empty(attrib->requests) ||
- !g_queue_is_empty(attrib->responses))
- wake_up_sender(attrib);
-
return TRUE;
}