Diff between 267521853247b2448b477c56dba4bd287480814e and 8ad6a853f07554f1a1a56f339d01f50e6da4c628
Changed Files
| File | Additions | Deletions | Status |
| src/shared/hfp.c | +8 | -1 | modified |
Full Patch
diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index 3b61759..42e4c6b 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
@@ -722,7 +722,14 @@ bool hfp_gw_send_result(struct hfp_gw *hfp, enum hfp_result result)
wakeup_writer(hfp);
- hfp->result_pending = false;
+ /*
+ * There might be already something to read in the ring buffer.
+ * If so, let's read it.
+ */
+ if (hfp->result_pending) {
+ hfp->result_pending = false;
+ can_read_data(hfp->io, hfp);
+ }
return true;
}