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:
Dan Williams
2010-03-30 23:28:26 -07:00
parent d2e12742c4
commit 4753f7360b

View File

@@ -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;