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

Commit 695e15a3 authored by Jeremy Wu's avatar Jeremy Wu
Browse files

floss: improve accuracy of |is_pairing_busy|

In CL:3081111 it was pointed out that |pairing_is_busy| is not
sufficient to guarantee that pairing is in the available state.

Bug: 317682584
Test: m Bluetooth
Change-Id: I7c53aeceeab397871c5ce8901e1ff4069667f739
parent 160dae71
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1344,6 +1344,8 @@ impl Bluetooth {
    /// Checks whether pairing is busy.
    pub fn is_pairing_busy(&self) -> bool {
        self.intf.lock().unwrap().pairing_is_busy()
            || self.active_pairing_address.is_some()
            || self.pending_create_bond.is_some()
    }
}