summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 86d4644)
raw | patch | inline | side by side (parent: 86d4644)
author | Kalle Wallin <kaw@linux.se> | |
Wed, 1 Jun 2005 08:08:30 +0000 (08:08 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Wed, 1 Jun 2005 08:08:30 +0000 (08:08 +0000) |
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index 8a48dc5faf632c5ea984e612d8f64838931c1bdc..3dd7b6b94b338948b149fb0afe37ae43d39112fd 100644 (file)
--- a/src/main.c
+++ b/src/main.c
{
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],