Mercurial > dovecot > core-2.2
changeset 19669:2e624fd124c7
imapc: Don't mark the initial sync done if it wasn't successful.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 28 Jan 2016 19:51:43 +0200 |
parents | f1aee594704f |
children | b467f6d24fd5 |
files | src/lib-storage/index/imapc/imapc-sync.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/imapc/imapc-sync.c Thu Jan 28 19:49:56 2016 +0200 +++ b/src/lib-storage/index/imapc/imapc-sync.c Thu Jan 28 19:51:43 2016 +0200 @@ -401,9 +401,8 @@ if (mbox->box.v.sync_notify != NULL) mbox->box.v.sync_notify(&mbox->box, 0, 0); - if (!mbox->initial_sync_done) { - if (!ctx->failed) - imapc_initial_sync_check(ctx, FALSE); + if (!mbox->initial_sync_done && !ctx->failed) { + imapc_initial_sync_check(ctx, FALSE); mbox->initial_sync_done = TRUE; } }