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:
commit
6bb42191ac
1 changed files with 4 additions and 0 deletions
|
@ -715,6 +715,10 @@ class ImapConnection {
|
|||
}
|
||||
|
||||
public void close() {
|
||||
if (!open) {
|
||||
return;
|
||||
}
|
||||
|
||||
open = false;
|
||||
stacktraceForClose = new Exception();
|
||||
|
||||
|
|
Loading…
Reference in a new issue