summaryrefslogtreecommitdiffstats
path: root/plugins/smart_messaging.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/smart_messaging.c')
-rw-r--r--plugins/smart_messaging.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/smart_messaging.c b/plugins/smart_messaging.c
index fb44cc1f..27f88e78 100644
--- a/plugins/smart_messaging.c
+++ b/plugins/smart_messaging.c
@@ -99,6 +99,9 @@ static void sms_watch(struct ofono_atom *atom,
g_dbus_unregister_interface(conn,
ofono_modem_get_path(sm->modem),
SMART_MESSAGING_INTERFACE);
+
+ ofono_modem_remove_interface(sm->modem,
+ SMART_MESSAGING_INTERFACE);
return;
}