core: don't re-export modems after db413acc4e
If a port is found by the kernel after the modem is already exported, make sure we don't re-export the modem after the tardy port is handled.
This commit is contained in:
@@ -240,6 +240,12 @@ check_export_modem (MMManager *self, MMModem *modem)
|
||||
}
|
||||
}
|
||||
|
||||
/* Already exported? This can happen if the modem is exported and the kernel
|
||||
* discovers another of the modem's ports.
|
||||
*/
|
||||
if (g_object_get_data (G_OBJECT (modem), DBUS_PATH_TAG))
|
||||
return;
|
||||
|
||||
/* No outstanding port tasks, so if the modem is valid we can export it */
|
||||
if (mm_modem_get_valid (modem)) {
|
||||
static guint32 id = 0;
|
||||
|
Reference in New Issue
Block a user