diff --git a/k9mail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapConnection.java b/k9mail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapConnection.java index f92d31e253b..09603f2e100 100644 --- a/k9mail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapConnection.java +++ b/k9mail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapConnection.java @@ -692,6 +692,10 @@ protected boolean isIdleCapable() { } public void close() { + if (!open) { + return; + } + open = false; stacktraceForClose = new Exception();