From c1218a08ffef1992880bd84d4bf9d33e52f9645d Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Thu, 1 Mar 2012 16:13:44 +0200 Subject: ofono: Remove network whenever context is removed Fixes BMC#24942 --- plugins/ofono.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/ofono.c') 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); -- cgit v1.2.3