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

Commit 55ef6a0f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Floss: Notify OnScannerRegistered when RegisterScanner fails" into main am: f4b55ab8

parents 4be1d7f4 f4b55ab8
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -4095,12 +4095,6 @@ impl BtifGattScannerCallbacks for BluetoothGatt {
            status
        );

        if status != GattStatus::Success {
            log::error!("Error registering scanner UUID {}", uuid);
            self.scanners.lock().unwrap().remove(&uuid);
            return;
        }

        let mut scanners_lock = self.scanners.lock().unwrap();
        let scanner_info = scanners_lock.get_mut(&uuid);

@@ -4117,6 +4111,11 @@ impl BtifGattScannerCallbacks for BluetoothGatt {
                uuid
            );
        }

        if status != GattStatus::Success {
            log::error!("Error registering scanner UUID {}", uuid);
            scanners_lock.remove(&uuid);
        }
    }

    fn on_scan_result(