]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Fix ring sync wait after DIRECTOR-REMOVE
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 14 Sep 2017 15:13:05 +0000 (18:13 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 5 Oct 2017 14:45:39 +0000 (17:45 +0300)
It was sending OK twice, and the first OK was too early.

src/director/doveadm-connection.c

index 3c2f009409fc9d42e5a7bbd386fbd9edf56bfa5e..ae1f163812355fff171412d8fde880f918ded4a8 100644 (file)
@@ -287,10 +287,8 @@ doveadm_cmd_director_remove(struct doveadm_connection *conn,
                director_host_lookup_ip(conn->dir, &ip);
        if (host == NULL)
                o_stream_nsend_str(conn->output, "NOTFOUND\n");
-       else {
+       else
                director_ring_remove(host, conn->dir->self_host);
-               o_stream_nsend(conn->output, "OK\n", 3);
-       }
        return DOVEADM_DIRECTOR_CMD_RET_RING_SYNC_OK;
 }