Code

main: use mpdclient_is_connected in assert
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 29 Oct 2011 12:49:26 +0000 (14:49 +0200)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Wed, 2 Nov 2011 14:36:29 +0000 (15:36 +0100)
src/main.c

index a57f35dfcf27f610fe44972828b23af34b3c76f1..51334f181413b0c5329d1361100b1bd52366e693 100644 (file)
@@ -391,7 +391,7 @@ idle_callback(enum mpd_error error, enum mpd_server_error server_error,
 
        c->idle = false;
 
-       assert(mpdclient_get_connection(c) != NULL);
+       assert(mpdclient_is_connected(c));
 
        if (error != MPD_ERROR_SUCCESS) {
                char *allocated;