diff --git a/applications/services/bt/bt_service/bt.c b/applications/services/bt/bt_service/bt.c index a2cff8686..a4bcc4975 100644 --- a/applications/services/bt/bt_service/bt.c +++ b/applications/services/bt/bt_service/bt.c @@ -367,13 +367,13 @@ static void bt_change_profile(Bt* bt, BtMessage* message) { *message->result = false; } } - api_lock_unlock(message->lock); + if(message->lock) api_lock_unlock(message->lock); } static void bt_close_connection(Bt* bt, BtMessage* message) { bt_close_rpc_connection(bt); furi_hal_bt_stop_advertising(); - api_lock_unlock(message->lock); + if(message->lock) api_lock_unlock(message->lock); } static inline FuriHalBtProfile get_hal_bt_profile(BtProfile profile) {