Skip to content

Conversation

robert-hh
Copy link

Under circumstances not fully clear sometimes duplicate list elements are added to the list ble_hs_stop_listeners. If that happens, the function ble_hs_stop_done() never terminates.
This PR adds a check into ble_hs_stop_register_listener() if a to-be-added node/sublist already exist in the list and the it does not add this element. While this is anyhow a good test, it should not be needed in the MicroPython environment.

Under circumstances not fully clear sometimes duplicate list elements
are added to the `list ble_hs_stop_listeners`. If that happens, the
function `ble_hs_stop_done()` never terminates.
This PR adds a check into `ble_hs_stop_register_listener()` if
a to-be-added node/sublist already exist in the list and the it does
not add this element. While this is anyhow a good test, it should not
be needed in the MicroPython environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant