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

Commit f0590d75 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

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

Change-Id: I397ed78a8d0c3656a06a4d3a2a7781e4542af453
parents 46c7c810 a14c0492
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();