forked from kofal.net/zmk
fix: Locking fix for RPC subsystem.
This commit is contained in:
committed by
Pete Johanson
parent
782695f4a9
commit
5176fbea6a
@@ -245,7 +245,7 @@ static void refresh_selected_transport(void) {
|
|||||||
k_mutex_lock(&rpc_transport_mutex, K_FOREVER);
|
k_mutex_lock(&rpc_transport_mutex, K_FOREVER);
|
||||||
|
|
||||||
if (selected_transport && selected_transport->transport == transport) {
|
if (selected_transport && selected_transport->transport == transport) {
|
||||||
return;
|
goto exit_refresh;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selected_transport) {
|
if (selected_transport) {
|
||||||
@@ -272,6 +272,7 @@ static void refresh_selected_transport(void) {
|
|||||||
LOG_WRN("Failed to select a transport!");
|
LOG_WRN("Failed to select a transport!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exit_refresh:
|
||||||
k_mutex_unlock(&rpc_transport_mutex);
|
k_mutex_unlock(&rpc_transport_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user