Diff between 50f06712908a0425a928b4765d587f9873cc08ae and 6dc1643c76a2541bad6a2dccd047b6ed44acc7fb
Changed Files
| File | Additions | Deletions | Status |
| audio/headset.c | +2 | -0 | modified |
Full Patch
diff --git a/audio/headset.c b/audio/headset.c
index 3b48c27..4540c34 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1331,6 +1331,8 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond,
error("Badly formated or unrecognized command: %s",
&slc->buf[slc->data_start]);
err = headset_send(hs, "\r\nERROR\r\n");
+ if (err < 0)
+ goto failed;
} else if (err < 0)
error("Error handling command %s: %s (%d)",
&slc->buf[slc->data_start],