forked from I2P_Developers/i2p.i2p
SusiMail: Fix NPE on logout (ticket #2266)
This commit is contained in:
@@ -1316,11 +1316,13 @@ public class POP3MailBox implements NewMailListener {
|
||||
if (socket != null && socket.isConnected()) {
|
||||
try {
|
||||
deletePending(!shouldWait);
|
||||
if (shouldWait) {
|
||||
sendCmd1a("QUIT");
|
||||
if (_log.shouldDebug()) _log.debug("close() with wait complete");
|
||||
} else {
|
||||
sendCmd1aNoWait("QUIT");
|
||||
if (socket != null && socket.isConnected()) {
|
||||
if (shouldWait) {
|
||||
sendCmd1a("QUIT");
|
||||
if (_log.shouldDebug()) _log.debug("close() with wait complete");
|
||||
} else {
|
||||
sendCmd1aNoWait("QUIT");
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
//if (_log.shouldDebug()) _log.debug("error closing: " + e);
|
||||
|
Reference in New Issue
Block a user