Message ID | 20250128102828.16087-1-ludovico.denittis@collabora.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ] device: Clear pending_flags on error | expand |
diff --git a/src/adapter.c b/src/adapter.c index 5d4117a49..749662586 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -5580,6 +5580,7 @@ static void set_device_privacy_complete(uint8_t status, uint16_t length, if (status != MGMT_STATUS_SUCCESS) { error("Set device flags return status: %s", mgmt_errstr(status)); + dev->pending_flags = 0; return; } diff --git a/src/device.c b/src/device.c index e8bff718c..3c2337198 100644 --- a/src/device.c +++ b/src/device.c @@ -1575,6 +1575,7 @@ static void set_wake_allowed_complete(uint8_t status, uint16_t length, dev->wake_id = -1U; } dev->pending_wake_allowed = FALSE; + dev->pending_flags = 0; return; }