mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 05:00:55 +01:00
Fix calling scan ended callback when scan was already stopped.
This commit is contained in:
parent
c03053fb53
commit
5857879612
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ bool NimBLEScan::stop() {
|
||||||
|
|
||||||
m_stopped = true;
|
m_stopped = true;
|
||||||
|
|
||||||
if (m_scanCompleteCB != nullptr) {
|
if (rc != BLE_HS_EALREADY && m_scanCompleteCB != nullptr) {
|
||||||
m_scanCompleteCB(m_scanResults);
|
m_scanCompleteCB(m_scanResults);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue