From: Max Kellermann Date: Mon, 20 Mar 2017 19:27:22 +0000 (+0100) Subject: plugin: use g_idle_add() instead of g_timeout_add(0) X-Git-Tag: v0.27~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=536e6df409b7d3b7dc2ddf7f4e2882a04cba24d8;p=ncmpc.git plugin: use g_idle_add() instead of g_timeout_add(0) --- diff --git a/src/plugin.c b/src/plugin.c index 05b83b7..dcca7b8 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -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; } }