27982. if we were trying to login and the server told us it was full (via a 421 code :-/), then just stop processing

This commit is contained in:
valeski%netscape.com 2000-04-18 13:48:34 +00:00
Родитель 786abf8514
Коммит aa0afb1017
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -269,8 +269,12 @@ nsFtpConnectionThread::Process() {
{
if (mConn) delete mConn;
if (mResponseCode == 421) {
// The command channel dropped for some reason. Fire it back up.
if (mResponseCode == 421 &&
mInternalError != NS_ERROR_FTP_LOGIN) {
// The command channel dropped for some reason.
// Fire it back up, unless we were trying to login
// in which case the server might just be telling us
// that the max number of users has been reached...
mState = FTP_COMMAND_CONNECT;
mNextState = FTP_S_USER;
} else {