Code

use mpdclient_is_connected()
[ncmpc.git] / src / screen_client.c
index 2d39a29a591f29d47b1b5c9d0f133223604f7050..9d60ed2cd6943cbd018653fdcc0bc4338d53ffc9 100644 (file)
@@ -73,7 +73,7 @@ screen_database_update(struct mpdclient *c, const char *path)
        unsigned id;
 
        assert(c != NULL);
-       assert(c->connection != NULL);
+       assert(mpdclient_is_connected(c));
 
        id = mpd_run_update(c->connection, path);
        if (id == 0) {