Diff between 89bc45d2626dfd2340b57b076e6535e0f9594048 and 267521853247b2448b477c56dba4bd287480814e
Changed Files
| File | Additions | Deletions | Status |
| src/shared/hfp.c | +4 | -4 | modified |
Full Patch
diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index 7ad6e42..3b61759 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
@@ -505,13 +505,13 @@ static void process_input(struct hfp_gw *hfp)
*ptr = '\0';
}
- hfp->result_pending = true;
-
if (!call_prefix_handler(hfp, str)) {
- if (hfp->command_callback)
+ if (hfp->command_callback) {
hfp->command_callback(str, hfp->command_data);
- else
+ hfp->result_pending = true;
+ } else {
hfp_gw_send_result(hfp, HFP_RESULT_ERROR);
+ }
}
len = ringbuf_drain(hfp->read_buf, count + 1);