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

Commit e0a9f70d authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Remove unnecessary CHECK in BleAdvertisingManager::Get()

It is causing race conditions. Weak pointer is already taking care of
making sure the instance is valid, even if it was not yet initialized.

Bug: 74863151
Test: compilation
Change-Id: Iddb69f8a38d80044d1bdd7699fad020f710914be
(cherry picked from commit 68ef745a3af2fcdee03db4441016e5b5e0039c74)
parent 5ad2313b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1051,7 +1051,6 @@ void BleAdvertisingManager::Initialize(BleAdvertiserHciInterface* interface) {
bool BleAdvertisingManager::IsInitialized() { return instance; }

base::WeakPtr<BleAdvertisingManager> BleAdvertisingManager::Get() {
  CHECK(instance);
  return instance_weakptr;
};