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

Commit f651b455 authored by Chris Manton's avatar Chris Manton
Browse files

acl_scheduler: Explicitly skip when outgoing connection queue empty

Bug: 349197968
Test: atest bluetooth_test_gd_unit
Flag: EXEMPT, Mechanical Refactor

Change-Id: Ib31c9c6cf873dfaadb8920aad0180e379680d141
parent 9f55248d
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -163,8 +163,10 @@ struct AclScheduler::impl {


private:
private:
  bool is_ready_to_send_next_operation() const {
  bool is_ready_to_send_next_operation() const {
    return incoming_connecting_address_set_.empty() && !outgoing_entry_.has_value() &&
    if (pending_outgoing_operations_.empty()) {
           !pending_outgoing_operations_.empty();
      return false;
    }
    return incoming_connecting_address_set_.empty() && !outgoing_entry_.has_value();
  }
  }


  void try_dequeue_next_operation() {
  void try_dequeue_next_operation() {