diff options
author | Sven Gothel <[email protected]> | 2020-11-23 15:07:53 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-11-23 15:07:53 +0100 |
commit | ec1db7e6f5304b16a8f3881b8e82dd1fa8c6d039 (patch) | |
tree | 5a024324a30d6163e2db8587dd72469ec7777df6 /src/direct_bt | |
parent | d20d23e875efb7a5b4ed231aa9bad23fbde51d12 (diff) |
HCIHandler::clearAllStates(): Also clear currentScanType (complete)
Diffstat (limited to 'src/direct_bt')
-rw-r--r-- | src/direct_bt/HCIHandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/direct_bt/HCIHandler.cpp b/src/direct_bt/HCIHandler.cpp index b2060cb2..22077640 100644 --- a/src/direct_bt/HCIHandler.cpp +++ b/src/direct_bt/HCIHandler.cpp @@ -172,6 +172,7 @@ void HCIHandler::clearAllStates() noexcept { const std::lock_guard<std::recursive_mutex> lock(mtx_connectionList); // RAII-style acquire and relinquish via destructor connectionList.clear(); disconnectCmdList.clear(); + currentScanType = ScanType::NONE; } MgmtEvent::Opcode HCIHandler::translate(HCIEventType evt, HCIMetaEventType met) noexcept { |