summaryrefslogtreecommitdiffstats
path: root/network/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'network/manager.c')
-rw-r--r--network/manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/network/manager.c b/network/manager.c
index 898a183b..65d8634b 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -164,6 +164,9 @@ static DBusHandlerResult remove_path(DBusConnection *conn,
if (!l)
return err_does_not_exist(conn, msg, "Path doesn't exist");
+ if (*list == connection_paths && connection_has_pending (conn, path))
+ return err_failed(conn, msg, "Connection is Busy");
+
g_free(l->data);
*list = g_slist_remove(*list, l->data);