diff options
author | Dan Williams <dcbw@redhat.com> | 2010-03-30 23:28:26 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-03-30 23:28:26 -0700 |
commit | 4753f7360b7809e4efc62bcff6d5d1194524b83f (patch) | |
tree | 4ff7523182ea8e27645d88cdde40ee60daf50993 /src | |
parent | d2e12742c4bbeb093634f8257f7c009722e633cf (diff) |
core: don't re-export modems after db413acc4e9d364e1c4ecdde0da3fade012912ab
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mm-manager.c b/src/mm-manager.c index 6fd49856..abcb8cd1 100644 --- a/src/mm-manager.c +++ b/src/mm-manager.c @@ -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; |