Diff between e9ec1cf8715d72195a94d748777a19b8e2ba4db5 and 42e9b8db92d5d8725e9a1bfd93a5c6a257186776

Changed Files

File Additions Deletions Status
src/device.c +2 -1 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 6da5c38..7114e1b 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1568,6 +1568,8 @@ static void dev_property_set_wake_allowed(const GDBusPropertyTable *property,
 		return;
 	}
 
+	dbus_message_iter_get_basic(value, &b);
+
 	/* Emit busy or success depending on current value. */
 	if (b == device->pending_wake_allowed) {
 		if (device->wake_allowed == device->pending_wake_allowed)
@@ -1580,7 +1582,6 @@ static void dev_property_set_wake_allowed(const GDBusPropertyTable *property,
 		return;
 	}
 
-	dbus_message_iter_get_basic(value, &b);
 	device_set_wake_override(device, b);
 	device_set_wake_allowed(device, b, id);
 }