commit | 9d2f49b4599a019487fe5623b2029155e9ff3644 | [log] [tgz] |
---|---|---|
author | Dmitry Kotov <dkotov@google.com> | Wed Aug 17 19:20:18 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 17 19:20:18 2022 +0000 |
tree | 0984ad37a3255e1c9020045d5df5e2c09596bcb3 | |
parent | 73eeb7710e9ecfd1eb9b40c7e000f78ffb1b975c [diff] |
pw_transfer: Set event loop unconditionally Do not rely on automatic event loop registration on the main thread and set event loop even if the current thread is the main thread. If the pw_transfer.Manager is created after an event loop attached to the main thread is closed, the new event loop is not automatailly registered for the main thread, which leads to the "RuntimeError: There is no current event loop" exception in the pw_transfer.Manager constructor on the main thread. Change-Id: I1f5a906656668cdd9b872fa0ef4350b18413e363 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/106831 Commit-Queue: Dmitry Kotov <dkotov@google.com> Reviewed-by: Carlos Chinchilla <cachinchilla@google.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/.