Mercurial > dovecot > core-2.2
diff src/director/doveadm-connection.c @ 22569:718e59dd23dd
director: Fix ring sync wait after DIRECTOR-REMOVE
It was sending OK twice, and the first OK was too early.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 14 Sep 2017 18:13:05 +0300 |
parents | 3af1ba6b5248 |
children | 4057b92ed502 |
line wrap: on
line diff
--- a/src/director/doveadm-connection.c Thu Sep 14 17:59:05 2017 +0300 +++ b/src/director/doveadm-connection.c Thu Sep 14 18:13:05 2017 +0300 @@ -287,10 +287,8 @@ 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; }