Code

mpdclient: automatically re-enter idle mode, eliminate mpdclient_put_connection()
[ncmpc.git] / src / main.c
index d9c3ddb0d28c48e7dbf7663068b9c0aabe9e3908..8ade659e69ddc0f997fa2bfe46a74a6754568998 100644 (file)
@@ -148,7 +148,6 @@ do_mpd_update(void)
        screen_update(mpd);
        mpd->events = 0;
 
-       mpdclient_put_connection(mpd);
        check_reconnect();
 }
 
@@ -201,7 +200,6 @@ timer_reconnect(gcc_unused gpointer data)
        g_free(name);
        doupdate();
 
-       mpdclient_disconnect(mpd);
        mpdclient_connect(mpd);
 
        return FALSE;
@@ -309,7 +307,6 @@ void end_input_event(void)
        screen_update(mpd);
        mpd->events = 0;
 
-       mpdclient_put_connection(mpd);
        check_reconnect();
        auto_update_timer();
 }