From 0634f49fc763e7541384fdb14670e83e3693b789 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Sun, 19 Jan 2020 22:38:22 +0530 Subject: [PATCH] mm-provider: Fix a check to remove device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to remove the modem if the currently removed interface is Voice. It was previously removing the device if the removed interface wasn’t Voice. Fixes https://source.puri.sm/Librem5/calls/issues/94 --- plugins/mm/calls-mm-provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mm/calls-mm-provider.c b/plugins/mm/calls-mm-provider.c index db18150..a4742d1 100644 --- a/plugins/mm/calls-mm-provider.c +++ b/plugins/mm/calls-mm-provider.c @@ -210,7 +210,7 @@ interface_removed_cb (CallsMMProvider *self, info->name, path); if (g_strcmp0 (info->name, - "org.freedesktop.ModemManager1.Modem.Voice") != 0) + "org.freedesktop.ModemManager1.Modem.Voice") == 0) { remove_modem_object (self, path, object); }