changeset 20544:88b0b65c732b

dict-client: Fixed hang in async iteration if it failed.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Tue, 02 Aug 2016 01:02:59 +0300
parents 6a73133e0bf9
children 0be59f9f40ab
files src/lib-dict/dict-client.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-dict/dict-client.c	Mon Aug 01 22:18:08 2016 +0300
+++ b/src/lib-dict/dict-client.c	Tue Aug 02 01:02:59 2016 +0300
@@ -770,10 +770,7 @@
 		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;
 	}