Diff between 46aad83687251bef0fa0ac60583e5898170b0f10 and 98078c12e677bd992cae5c41e239adbdf3a3a315
Changed Files
| File | Additions | Deletions | Status |
| src/shared/hfp.c | +2 | -1 | modified |
Full Patch
diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index 0ce3121..ea6494d 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
@@ -183,8 +183,8 @@ static void handle_unknown_at_command(struct hfp_gw *hfp,
const char *data)
{
if (hfp->command_callback) {
- hfp->command_callback(data, hfp->command_data);
hfp->result_pending = true;
+ hfp->command_callback(data, hfp->command_data);
} else {
hfp_gw_send_result(hfp, HFP_RESULT_ERROR);
}
@@ -263,6 +263,7 @@ done:
return true;
}
+ hfp->result_pending = true;
handler->callback(&context, type, handler->user_data);
return true;