Skip to content
Commit 2ec3cd30 authored by Rubin Gerritsen's avatar Rubin Gerritsen Committed by Anas Nashif
Browse files

Bluetooth: Host: Avoid registering callback twice



Callbacks can only be registered once. Otherwise the slist
will become circular.

In this commit we have choosen to ignore the second registration
call if the callback has already been registed. The alternative
is to trigger an assertion. That doesn't work if the assertions
are turned off.

Signed-off-by: default avatarRubin Gerritsen <rubin.gerritsen@nordicsemi.no>
parent 6e6bb261
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment