diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-04-20 15:41:32 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-04-20 15:41:32 +0000 |
commit | 36d0506a28a2413467d2c5e793d53c45b2183d34 (patch) | |
tree | e4673ea0514fe496ae288f5b9c5b52f81b147dba /network/manager.c | |
parent | f5dcb96ae5e257efc4dc9cdd510119e9788d1228 (diff) |
Check connection busy before removing it.
Diffstat (limited to 'network/manager.c')
-rw-r--r-- | network/manager.c | 3 |
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); |