Diff between 62fa7208915c1a5761d58c1eca28ed55cb4e13f5 and 7c10f7745bf83950b668bac7fe9bee867b29e279
Changed Files
| File | Additions | Deletions | Status |
| src/adapter.c | +3 | -1 | modified |
Full Patch
diff --git a/src/adapter.c b/src/adapter.c
index cf063ba..56bee35 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -5389,7 +5389,9 @@ static void disconnect_complete(uint8_t status, uint16_t length,
const struct mgmt_rp_disconnect *rp = param;
struct btd_adapter *adapter = user_data;
- if (status != MGMT_STATUS_SUCCESS) {
+ if (status == MGMT_STATUS_NOT_CONNECTED) {
+ warn("Disconnecting failed: already disconnected");
+ } else if (status != MGMT_STATUS_SUCCESS) {
error("Failed to disconnect device: %s (0x%02x)",
mgmt_errstr(status), status);
return;