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

Commit a820c1c4 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
parent 210d3d47
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;
};