]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dict-client: Fixed hang in async iteration if it failed.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 1 Aug 2016 22:02:59 +0000 (01:02 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 1 Aug 2016 22:03:32 +0000 (01:03 +0300)
src/lib-dict/dict-client.c

index a9321c89b906aa0db9d81799d6e106b82ed1ef6f..f186d6254f21ca191739e09e7f689a99f0019d89 100644 (file)
@@ -769,10 +769,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;
        }