summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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);