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

Commit 62c5e49d authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Earlier check for inquiry scan stopping" am: d2f7b24c am: a14c0492 am: f0590d75

Change-Id: I9fc493dcd0632e08c821f485acd5745219aaa8e8
parents 3c400429 f0590d75
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();