зеркало из https://github.com/mozilla/pjs.git
Fixed another nasty bug. Possibly also because the JavaMail API changed to first call protocolConnect with a null password and if that fails to lookup the password and call protocolConnect again.
This commit is contained in:
Родитель
6acbf5f25d
Коммит
013fd7935d
|
@ -120,6 +120,8 @@ public class PopStore extends Store {
|
|||
check(readln(), "USER command not accepted");
|
||||
writeln("PASS " + password);
|
||||
if (!resultOK(readln())) {
|
||||
fSocket.close();
|
||||
fSocket = null; // Otherwise it thinks we're still connected
|
||||
return false; // Authentication failed.
|
||||
}
|
||||
} catch (UnknownHostException e) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче