diff --git a/src/options.c b/src/options.c
index 47fc3b9715e72829758d811642b426bac4d7012b..1b3e9af09cbfb31e7edf7e79ef41d39094214c92 100644 (file)
--- a/src/options.c
+++ b/src/options.c
.audible_bell = true,
.bell_on_wrap = true,
.status_message_time = 3,
+ .timeout_ms = DEFAULT_MPD_TIMEOUT,
#ifndef NCMPC_MINI
.scroll = DEFAULT_SCROLL,
.welcome_screen_list = true,
#ifndef NCMPC_MINI
options.scroll_sep = g_strdup(DEFAULT_SCROLL_SEP);
#endif
+ if (getenv("MPD_TIMEOUT") != NULL)
+ /* let libmpdclient parse the environment variable */
+ options.timeout_ms = 0;
}
void