summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-24 23:08:57 +0200
committerSven Gothel <[email protected]>2020-06-24 23:08:57 +0200
commitcb17c522a3d0e2c268b7f283c8f032a9c4a6f446 (patch)
treed724f3ac5d82cc547fcb58644d134d52827855c6
parent5af421c0d2b739f840958b983c26e61a35f991cf (diff)
DBTDevice::disconnect: Always issue 'adapter.removeConnectedDevice(*this)' at exit (regression)
-rw-r--r--src/direct_bt/DBTDevice.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/direct_bt/DBTDevice.cpp b/src/direct_bt/DBTDevice.cpp
index 191949cf..e5d32a1e 100644
--- a/src/direct_bt/DBTDevice.cpp
+++ b/src/direct_bt/DBTDevice.cpp
@@ -419,9 +419,7 @@ skip_hci_disconnect:
}
exit:
- if( res ) {
- adapter.removeConnectedDevice(*this);
- }
+ adapter.removeConnectedDevice(*this);
return res;
}