summaryrefslogtreecommitdiff
path: root/plugins/ofono.c
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2012-03-01 16:13:44 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-03-05 16:32:18 +0100
commitc1218a08ffef1992880bd84d4bf9d33e52f9645d (patch)
tree0ab215990947c02f47978b78addc3c3ebecaae98 /plugins/ofono.c
parent21ca0158deb5ed000b3622669f38590a0f7a56c8 (diff)
downloadconnman-c1218a08ffef1992880bd84d4bf9d33e52f9645d.tar.gz
connman-c1218a08ffef1992880bd84d4bf9d33e52f9645d.tar.bz2
connman-c1218a08ffef1992880bd84d4bf9d33e52f9645d.zip
ofono: Remove network whenever context is removed
Fixes BMC#24942
Diffstat (limited to 'plugins/ofono.c')
-rw-r--r--plugins/ofono.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 8b8dcb0f..74c12d88 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -1127,6 +1127,9 @@ static void remove_cm_context(struct modem_data *modem,
if (modem->context == NULL)
return;
+ if (modem->network != NULL)
+ remove_network(modem);
+
g_hash_table_remove(context_hash, context_path);
network_context_free(modem->context);