From 480e564bf37559d682ef53a39423e4b7811a448f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Sep 2009 18:20:25 +0200 Subject: [PATCH] main: changed "connected" check to assertion timer_reconnect() must not be called when ncmpc is already connected. --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) ); -- 2.30.2