]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dict: dict - Allow calling callback immediately
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 10 Sep 2020 14:43:06 +0000 (17:43 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 11 Sep 2020 09:42:07 +0000 (12:42 +0300)
Make callback calls the next callback immediately,
instead of adding a timeout that calls the callback.

Forgotten in 178bb676ea1dd380789d3587bf5e64fd85a29d7a

src/lib-dict/dict.c

index eabd9f681dc895f670a757dd6b948342d1e8f1eb..60a9f41b95fbeae0904ff52f61ab6b504f30419a 100644 (file)
@@ -545,6 +545,7 @@ void dict_transaction_commit_async(struct dict_transaction_context **_ctx,
        cctx->event = ctx->event;
        cctx->delayed_callback = TRUE;
        ctx->dict->v.transaction_commit(ctx, TRUE, dict_commit_callback, cctx);
+       cctx->delayed_callback = FALSE;
 }
 
 void dict_transaction_rollback(struct dict_transaction_context **_ctx)