Code

main: no delay for initial collect
authorMax Kellermann <max.kellermann@gmail.com>
Mon, 20 Mar 2017 15:41:58 +0000 (16:41 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Mon, 20 Mar 2017 15:41:58 +0000 (16:41 +0100)
src/main.c

index 5b906c513173385869779869c19f07f2b02784f9..8bfa03a86cff4bc8c0e9e06a55f7660b13159bf1 100644 (file)
@@ -422,7 +422,7 @@ main(int argc, const char *argv[])
        signals_init(main_loop, mpd);
 
        /* attempt to connect */
-       reconnect_source_id = g_timeout_add(1, timer_reconnect, NULL);
+       reconnect_source_id = g_idle_add(timer_reconnect, NULL);
 
        auto_update_timer();