From: Jonathan Neuschäfer Date: Sat, 29 Oct 2011 12:49:26 +0000 (+0200) Subject: main: use mpdclient_is_connected in assert X-Git-Tag: release-0.20~60^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a35dc03de529843d2a974dec4d487a95a14ae00a;p=ncmpc.git main: use mpdclient_is_connected in assert --- diff --git a/src/main.c b/src/main.c index a57f35d..51334f1 100644 --- a/src/main.c +++ b/src/main.c @@ -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;