mm-iface: clean out modem_iface if mm disappears

otherwise we will be stuck in state where restarting of mm will not
reset the modem_iface and it will loop through hard resetting modem
This commit is contained in:
Bhushan Shah
2021-04-15 09:29:36 +05:30
parent 73e16f7699
commit 705950bb39

View File

@@ -183,6 +183,9 @@ static void mm_iface_clean(struct EG25Manager *manager)
g_free(manager->modem_usb_id);
manager->modem_usb_id = NULL;
}
if (manager->modem_iface == MODEM_IFACE_MODEMMANAGER) {
manager->modem_iface = MODEM_IFACE_NONE;
}
}
static void mm_vanished_cb(GDBusConnection *connection,