summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/dbus.c b/config/dbus.c
index cef8ed5db..37462ace0 100644
--- a/config/dbus.c
+++ b/config/dbus.c
@@ -175,7 +175,7 @@ add_device(DBusMessage *message, DBusMessage *reply, DBusError *error)
unwind:
if (ret != Success) {
if (dev)
- RemoveDevice(dev);
+ RemoveDevice(dev, TRUE);
err = -ret;
dbus_message_iter_append_basic(&reply_iter, DBUS_TYPE_INT32, &err);