Code

plugin: use g_idle_add() instead of g_timeout_add(0)
authorMax Kellermann <max.kellermann@gmail.com>
Mon, 20 Mar 2017 19:27:22 +0000 (20:27 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Mon, 20 Mar 2017 19:27:22 +0000 (20:27 +0100)
src/plugin.c

index 05b83b70ff212d6ac94c59573fb4cc9fe41a57bb..dcca7b817d4a345a3d181a6ec5dfca74a83023a6 100644 (file)
@@ -294,7 +294,7 @@ next_plugin(struct plugin_cycle *cycle)
 
        if (cycle->next_plugin >= cycle->list->plugins->len) {
                /* no plugins left */
-               g_timeout_add(0, plugin_delayed_fail, cycle);
+               g_idle_add(plugin_delayed_fail, cycle);
                return;
        }
 
@@ -302,7 +302,7 @@ next_plugin(struct plugin_cycle *cycle)
                                                    cycle->next_plugin++);
        if (start_plugin(cycle, plugin_path) < 0) {
                /* system error */
-               g_timeout_add(0, plugin_delayed_fail, cycle);
+               g_idle_add(plugin_delayed_fail, cycle);
                return;
        }
 }