From: Max Kellermann Date: Tue, 29 Sep 2009 16:20:25 +0000 (+0200) Subject: main: changed "connected" check to assertion X-Git-Tag: release-0.16~318 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=480e564bf37559d682ef53a39423e4b7811a448f;p=ncmpc.git main: changed "connected" check to assertion timer_reconnect() must not be called when ncmpc is already connected. --- diff --git a/src/main.c b/src/main.c index 8d0d4b2..058c84a 100644 --- a/src/main.c +++ b/src/main.c @@ -203,8 +203,7 @@ timer_reconnect(G_GNUC_UNUSED gpointer data) { int ret; - if (connected) - return FALSE; + assert(!connected); screen_status_printf(_("Connecting to %s... [Press %s to abort]"), options.host, get_key_names(CMD_QUIT,0) );