commit | ca6e84582ed4507dd088455ff5eb76f4aada0f46 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Wed Jan 04 00:25:57 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 04 00:25:57 2023 +0000 |
tree | d57a15fae7a4f42b2828e8c9a3afac10ae2a9a63 | |
parent | 72b5d42863f42b64974156577098f7db7c903391 [diff] |
pw_rpc: Guard the on_error callback - Move the on_error callback to a local variable while the lock is held, then invoke it. - Have decoding errors terminate a call. They call the on_error callback currently, which should only be called at most once per call. - Use the call's active() flag instead of a separate active_ variable in client call tests. Bug: b/234876851 Change-Id: I785dd00813ebb0ab4743c7498ec3bcfaecc2075d Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/125250 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Alexei Frolov <frolv@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.