зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
786abf8514
Коммит
aa0afb1017
|
@ -269,8 +269,12 @@ nsFtpConnectionThread::Process() {
|
||||||
{
|
{
|
||||||
if (mConn) delete mConn;
|
if (mConn) delete mConn;
|
||||||
|
|
||||||
if (mResponseCode == 421) {
|
if (mResponseCode == 421 &&
|
||||||
// The command channel dropped for some reason. Fire it back up.
|
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;
|
mState = FTP_COMMAND_CONNECT;
|
||||||
mNextState = FTP_S_USER;
|
mNextState = FTP_S_USER;
|
||||||
} else {
|
} else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче