diff --git a/src/screen_client.c b/src/screen_client.c
index 2d39a29a591f29d47b1b5c9d0f133223604f7050..9d60ed2cd6943cbd018653fdcc0bc4338d53ffc9 100644 (file)
--- a/src/screen_client.c
+++ b/src/screen_client.c
unsigned id;
assert(c != NULL);
- assert(c->connection != NULL);
+ assert(mpdclient_is_connected(c));
id = mpd_run_update(c->connection, path);
if (id == 0) {