[gnome-software/mwleeds/hardcoded-pwa-list] fixup! gs-plugin-loader: Don't start all plugins in parallel



commit 7df4a151ceeedd6342adbfadd7ff19b3b76f862c
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Tue Mar 22 14:44:42 2022 -0700

    fixup! gs-plugin-loader: Don't start all plugins in parallel

 lib/gs-plugin-loader.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 0ffd097d9..14eef3f8a 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -2534,7 +2534,7 @@ finish_setup_op (GTask *task)
        data->n_pending = 1; /* increment while starting the batch */
        data->current_batch = G_MAXUINT;
 
-       /* Check if there's another batch of plugins to setup */
+       /* Check if there's another batch of plugins to set up */
        for (i = 0; i < plugin_loader->plugins->len; i++) {
                guint plugin_order;
                plugin = GS_PLUGIN (plugin_loader->plugins->pdata[i]);
@@ -2548,8 +2548,7 @@ finish_setup_op (GTask *task)
                plugin_order = gs_plugin_get_order (plugin);
                if (plugin_order <= prev_batch)
                        continue;
-
-               if (data->current_batch == G_MAXUINT)
+               else if (data->current_batch == G_MAXUINT)
                        data->current_batch = plugin_order;
 
                if (plugin_order > data->current_batch)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]