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

Commit a14c0492 authored by Chris Manton's avatar Chris Manton Committed by android-build-merger
Browse files

Merge "Earlier check for inquiry scan stopping"

am: d2f7b24c

Change-Id: I2d8a0e7e217ba85a7a19bdd580ae00267f42923b
parents df2e2c28 d2f7b24c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -193,6 +193,10 @@ void Inquiry::StartLimitedInquiry(uint8_t inquiry_length, uint8_t num_responses)
}

void Inquiry::StopInquiry() {
  if (!pimpl_->limited_inquiry_active_ && !pimpl_->general_inquiry_active_) {
    LOG_WARN("Ignoring attempt to stop an inactive inquiry");
    return;
  }
  pimpl_->limited_inquiry_active_ = false;
  pimpl_->general_inquiry_active_ = false;
  return pimpl_->module_->StopInquiry();