Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8683:a68ed51b681d HEAD
dict proxy client: Don't hang when doing an async commit.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 25 Jan 2009 19:39:41 -0500 |
parents | 49ad944c5741 |
children | ad35aae691ce |
files | src/lib-dict/dict-client.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-dict/dict-client.c Sun Jan 25 18:39:07 2009 -0500 +++ b/src/lib-dict/dict-client.c Sun Jan 25 19:39:41 2009 -0500 @@ -473,10 +473,10 @@ ctx->id); if (client_dict_send_transaction_query(ctx, query) < 0) ret = -1; - else if (ret < 0) { - /* rollback sent, it has no reply */ + else if (ret < 0 || async) { + /* no reply */ } else { - /* read reply */ + /* sync commit, read reply */ line = client_dict_read_line(dict); if (line == NULL || *line != DICT_PROTOCOL_REPLY_OK) ret = -1;