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 27, 2024
1 parent 079a3a3 commit aef6e67
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 aef6e67

Please sign in to comment.