aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8a48dc5fa..3dd7b6b94 100644
--- a/src/main.c
+++ b/src/main.c
@@ -253,6 +253,13 @@ main(int argc, const char *argv[])
{
exit(EXIT_FAILURE);
}
+
+ /* if no password is used, but the mpd wants one, the connection
+ might be established but no status information is avaiable */
+ mpdclient_update(mpd);
+ if(!mpd->status)
+ exit(EXIT_FAILURE);
+
connected = TRUE;
D("Connected to MPD version %d.%d.%d\n",
mpd->connection->version[0],