Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 338b4304 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix Bluetooth crash on user switching"

parents 401724bf 3b0ffd4f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -182,8 +182,12 @@ void bta_hh_le_enable(void) {
                            bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF;
                          }

                          /* null check is needed in case HID profile is shut
                           * down before BTA_GATTC_AppRegister is done */
                          if (bta_hh_cb.p_cback) {
                            /* signal BTA call back event */
                            (*bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, &bta_hh);
                          }
                        }));
}