Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix propagation of CoreBluetooth errors
Errors from CBPeripeheralDelegate calls were being raised in the asyncio event loop, but not in the correct task. In order to reach the user's code, the error has to be passed through the event to the user call that is awaiting the event. Without these changes, e.g. ATT errors sent by the peripheral caused error messages to be printed, but since the event that the user's call was waiting on was never set, the user's code was blocked. The implementation was adapted from #209
- Loading branch information