diff options
-rw-r--r-- | src/direct_bt/DBTDevice.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/direct_bt/DBTDevice.cpp b/src/direct_bt/DBTDevice.cpp index cefb9a3b..4516cc9b 100644 --- a/src/direct_bt/DBTDevice.cpp +++ b/src/direct_bt/DBTDevice.cpp @@ -468,7 +468,6 @@ void DBTDevice::hciSMPMsgCallback(std::shared_ptr<DBTDevice> sthis, std::shared_ SMPPairingState pstate = old_pstate; PairingMode pmode = old_pmode; bool is_device_ready = false; - bool do_disconnect = false; const SMPPDUMsg::Opcode opc = msg->getOpcode(); @@ -582,9 +581,6 @@ void DBTDevice::hciSMPMsgCallback(std::shared_ptr<DBTDevice> sthis, std::shared_ if( is_device_ready ) { std::thread dc(&DBTDevice::processDeviceReady, this, sthis, msg->ts_creation); // @suppress("Invalid arguments") dc.detach(); - } else if( do_disconnect ) { - std::thread dc(&DBTDevice::disconnect, this, HCIStatusCode::AUTHENTICATION_FAILURE); // @suppress("Invalid arguments") - dc.detach(); } } |