base-manager: start device support check on first port addition

This avoids the "port in device added after device probing has already
finished" warning, and also the creation of modem objects for single
port devices.
This commit is contained in:
Aleksander Morgado
2024-04-09 10:25:59 +02:00
parent 9302fbbccb
commit 19da7559c0
+4 -1
View File
@@ -451,7 +451,10 @@ first_port (MMBaseManager *self,
}
/* Store the device */
g_hash_table_insert (self->priv->devices, g_strdup (uid), g_steal_pointer (&device));
g_hash_table_insert (self->priv->devices, g_strdup (uid), g_object_ref (device));
/* And start device support check */
device_support_check_add_single_port (self, device, port);
}
static void