Mercurial > dovecot > core-2.2
changeset 17518:25326be366c5
dsync: Fixed infinite looping on error condition.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 26 Jun 2014 17:27:31 +0300 |
parents | 55041cf555b7 |
children | 5c2bc165c5e9 |
files | src/doveadm/dsync/dsync-mailbox-import.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-mailbox-import.c Thu Jun 26 17:27:22 2014 +0300 +++ b/src/doveadm/dsync/dsync-mailbox-import.c Thu Jun 26 17:27:31 2014 +0300 @@ -1799,7 +1799,7 @@ /* skip common local mails */ (void)importer_next_mail(importer, importer->last_common_uid+1); /* if there are any local mails left, add them to newmails list */ - while (importer->cur_mail != NULL) + while (importer->cur_mail != NULL && !importer->failed) (void)dsync_mailbox_try_save(importer, NULL); if (importer->search_ctx != NULL) {