Commit 705950bb authored by Bhushan Shah's avatar Bhushan Shah
Browse files

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
parent 73e16f76
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment