# HG changeset patch # User Aki Tuomi # Date 1500455038 -10800 # Node ID 85f3ae6b6bef6d7b1b0e41528475f6a170b1cb91 # Parent b4c4eef825ba64292d72eb744149cb8c562dabc7 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) diff -r b4c4eef825ba -r 85f3ae6b6bef src/plugins/virtual/virtual-storage.c --- 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);