aboutsummaryrefslogtreecommitdiffstats
path: root/src/mpdclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpdclient.c')
-rw-r--r--src/mpdclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mpdclient.c b/src/mpdclient.c
index fcdaa4ef4..caa9fe3a9 100644
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
@@ -126,7 +126,8 @@ mpdclient_finish_command(mpdclient_t *c)
gint error = c->connection->error;
gchar *msg;
- if (c->connection->errorCode == MPD_ACK_ERROR_PERMISSION &&
+ if (error == MPD_ERROR_ACK &&
+ c->connection->errorCode == MPD_ACK_ERROR_PERMISSION &&
screen_auth(c) == 0)
return 0;