Prevent hanging LOGOUT

This commit is contained in:
M66B
2020-08-27 09:39:11 +02:00
parent fff231b9fa
commit cff6d1a8a2
2 changed files with 13 additions and 3 deletions

View File

@@ -462,6 +462,8 @@ public class IMAPProtocol extends Protocol {
*/
public void logout() throws ProtocolException {
try {
if (!authenticated)
return;
Response[] r = command("LOGOUT", null);
authenticated = false;