Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2925:f7e3283137db HEAD
Don't crash if we failed to lock cache file.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 03 Dec 2004 06:57:59 +0200 |
parents | 0e6ecb9d06e0 |
children | c035583b4839 |
files | src/lib-index/mail-cache-sync-update.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-cache-sync-update.c Tue Nov 30 11:37:33 2004 +0200 +++ b/src/lib-index/mail-cache-sync-update.c Fri Dec 03 06:57:59 2004 +0200 @@ -31,8 +31,10 @@ if (ctx == NULL) ctx = *ctx_r = i_new(struct mail_cache_sync_context, 1); - if (ctx->locked || ctx->lock_failed) + if (ctx->locked) return 1; + if (ctx->lock_failed) + return 0; if (!ctx->locked) { if ((ret = mail_cache_lock(cache)) <= 0) {