From b44bcd75905003183c1d5d352315b8a0f3f10e34 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 12 Dec 2008 23:03:55 +0100 Subject: [PATCH] Send signal when network got removed --- src/element.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/element.c b/src/element.c index 31c4560..1dd9c61 100644 --- a/src/element.c +++ b/src/element.c @@ -1948,9 +1948,12 @@ static gboolean remove_element(GNode *node, gpointer user_data) CONNMAN_CONNECTION_INTERFACE); } - if (element->type == CONNMAN_ELEMENT_TYPE_NETWORK) + if (element->type == CONNMAN_ELEMENT_TYPE_NETWORK) { + emit_networks_signal(connection, element->parent); + g_dbus_unregister_interface(connection, element->path, CONNMAN_NETWORK_INTERFACE); + } if (element->type == CONNMAN_ELEMENT_TYPE_DEVICE && element->subtype != CONNMAN_ELEMENT_SUBTYPE_NETWORK) { -- 2.7.4