Mercurial > dovecot > core-2.2
changeset 22366:85f3ae6b6bef
virtual: Stop watching notification on backend box close
Fixes Panic: file mail-index.c: line 662 (mail_index_close_nonopened): assertion failed: (index->views == NULL)
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Wed, 19 Jul 2017 12:03:58 +0300 |
parents | b4c4eef825ba |
children | 26e81cfafb1c |
files | src/plugins/virtual/virtual-storage.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/virtual/virtual-storage.c Tue Jul 18 21:04:47 2017 +0300 +++ b/src/plugins/virtual/virtual-storage.c Wed Jul 19 12:03:58 2017 +0300 @@ -455,7 +455,8 @@ for (i = 0; i < count; i++) { if (bboxes[i]->box == NULL) continue; - + if (bboxes[i]->notify != NULL) + mailbox_list_notify_deinit(&bboxes[i]->notify); if (bboxes[i]->box->opened) virtual_backend_box_close(mbox, bboxes[i]); mailbox_free(&bboxes[i]->box);