Merge pull request #2978 from k9mail/GH-2931_do_not_crash_when_closing_ImapConnection_twice

Do nothing in ImapConnection.close() if connection is not open
This commit is contained in:
cketti 2017-12-21 04:38:39 +01:00 committed by GitHub
commit 6bb42191ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -715,6 +715,10 @@ class ImapConnection {
}
public void close() {
if (!open) {
return;
}
open = false;
stacktraceForClose = new Exception();