mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 08:29:24 +00:00
Simplification
This commit is contained in:
parent
8c046e2f60
commit
ddc6a3750d
1 changed files with 2 additions and 9 deletions
|
@ -3270,15 +3270,8 @@ public class IMAPProtocol extends Protocol {
|
|||
boolean done = false; // done reading responses?
|
||||
notifyResponseHandlers(responses);
|
||||
|
||||
if (r.isUnTagged() && r.isOK()) // Still here
|
||||
try {
|
||||
DataOutputStream output = (DataOutputStream) getOutputStream();
|
||||
output.writeBytes("DONE");
|
||||
output.write(CRLF);
|
||||
output.flush();
|
||||
} catch (IOException ex) {
|
||||
throw new ProtocolException("IDLE/DONE", ex);
|
||||
}
|
||||
if (r.isUnTagged() && r.isOK()) // Still here
|
||||
idleAbort();
|
||||
|
||||
if (r.isBYE()) // shouldn't wait for command completion response
|
||||
done = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue