more aggressively skip perform API when threads are closing

This commit is contained in:
holger krekel
2019-07-16 12:57:19 +02:00
parent c652bae68a
commit 0e80ce9c39
2 changed files with 9 additions and 2 deletions

View File

@@ -468,7 +468,7 @@ impl Imap {
fn unsetup_handle(&self, context: &Context) {
info!(context, 0, "IMAP unsetup_handle starts");
self.interrupt_idle();
// self.interrupt_idle();
let session = self.session.lock().unwrap().0.take();
if session.is_some() {
match session.unwrap().close() {