Skip to content

Commit

Permalink
fix: Locking fix for RPC subsystem.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Aug 30, 2024
1 parent 1828f13 commit 14a7781
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/studio/rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
}

Expand Down

0 comments on commit 14a7781

Please sign in to comment.