Diff between 91441909dcbd5a7c78615ccc621064d25334c9e0 and 4d789940d828bc8a07a56eb4f374b8943b358c7e
Changed Files
| File | Additions | Deletions | Status |
| attrib/gattrib.c | +9 | -0 | modified |
Full Patch
diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index daf6312..31450a3 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -402,7 +402,16 @@ static gboolean received_data(GIOChannel *io, GIOCondition cond, gpointer data)
return FALSE;
if (cond & (G_IO_HUP | G_IO_ERR | G_IO_NVAL)) {
+ struct command *c;
+
+ while ((c = g_queue_pop_head(attrib->requests))) {
+ if (c->func)
+ c->func(ATT_ECODE_IO, NULL, 0, c->user_data);
+ command_destroy(c);
+ }
+
attrib->read_watch = 0;
+
return FALSE;
}