summaryrefslogtreecommitdiffstats
path: root/hcid/adapter.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r--hcid/adapter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index 281dd86c..43a3a8b4 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -4055,7 +4055,7 @@ static DBusMessage *remove_device(DBusConnection *conn,
"Device does not exist");
device = l->data;
- if (device->temporary)
+ if (device->temporary || device->discov_active)
return g_dbus_create_error(msg,
ERROR_INTERFACE ".DoesNotExist",
"Device creation in progress");