Skip to content

Commit

Permalink
director: Fix ring sync wait after DIRECTOR-REMOVE
Browse files Browse the repository at this point in the history
It was sending OK twice, and the first OK was too early.
  • Loading branch information
sirainen committed Oct 5, 2017
1 parent 656b9cd commit 959376d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/director/doveadm-connection.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 959376d

Please sign in to comment.