fix: Locking fix for RPC subsystem.
This commit is contained in:
parent
deb8d53a7c
commit
63b77fd259
1 changed files with 2 additions and 1 deletions
|
@ -245,7 +245,7 @@ static void refresh_selected_transport(void) {
|
|||
k_mutex_lock(&rpc_transport_mutex, K_FOREVER);
|
||||
|
||||
if (selected_transport && selected_transport->transport == transport) {
|
||||
return;
|
||||
goto exit_refresh;
|
||||
}
|
||||
|
||||
if (selected_transport) {
|
||||
|
@ -272,6 +272,7 @@ static void refresh_selected_transport(void) {
|
|||
LOG_WRN("Failed to select a transport!");
|
||||
}
|
||||
|
||||
exit_refresh:
|
||||
k_mutex_unlock(&rpc_transport_mutex);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue