Diff between 2d58cc855d665d7dac89f10641766c41e924c906 and 4691b95198fa6a801b17b73f259bbaaa3473b205
Changed Files
| File | Additions | Deletions | Status |
| src/shared/att.c | +6 | -0 | modified |
Full Patch
diff --git a/src/shared/att.c b/src/shared/att.c
index 8d58156..0aab246 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
@@ -642,6 +642,12 @@ static bool handle_error_rsp(struct bt_att *att, uint8_t *pdu,
if (!change_security(att, rsp->ecode))
return false;
+ /* Remove timeout_id if outstanding */
+ if (op->timeout_id) {
+ timeout_remove(op->timeout_id);
+ op->timeout_id = 0;
+ }
+
util_debug(att->debug_callback, att->debug_data,
"Retrying operation %p", op);