From 9f488469e5ceae235718b2fd7b94aac562599170 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 2 Aug 2016 01:02:59 +0300 Subject: [PATCH] dict-client: Fixed hang in async iteration if it failed. --- src/lib-dict/dict-client.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib-dict/dict-client.c b/src/lib-dict/dict-client.c index 69de5cc792..27656aec74 100644 --- a/src/lib-dict/dict-client.c +++ b/src/lib-dict/dict-client.c @@ -770,10 +770,7 @@ client_dict_iter_async_callback(struct client_dict_cmd *cmd, const char *line, if (ctx->error == NULL) ctx->error = i_strdup(error); ctx->finished = TRUE; - if (dict->prev_ioloop != NULL) { - /* stop client_dict_wait() */ - io_loop_stop(dict->ioloop); - } + client_dict_iter_api_callback(ctx, dict); client_dict_iterate_free(ctx); return; } -- 2.47.3