Merge branch 'mm-cleanup' into 'master'

mm-iface: clean out modem_iface if mm disappears

See merge request mobian1/devices/eg25-manager!17
This commit is contained in:
Arnaud Ferraris
2021-04-15 15:48:02 +00:00

View File

@@ -183,6 +183,9 @@ static void mm_iface_clean(struct EG25Manager *manager)
g_free(manager->modem_usb_id); g_free(manager->modem_usb_id);
manager->modem_usb_id = NULL; 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, static void mm_vanished_cb(GDBusConnection *connection,