From 419b5dcf2b2f65d9a545195145d43c10ab2e05ac Mon Sep 17 00:00:00 2001 From: "neeti%netscape.com" Date: Tue, 17 Sep 2002 20:22:32 +0000 Subject: [PATCH] backing out fix for bug 141451, r=dougt --- netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp b/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp index 8827b041095..3205a025795 100644 --- a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp +++ b/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp @@ -1537,12 +1537,7 @@ nsFtpState::S_retr() { if (!mDRequestForwarder) return NS_ERROR_FAILURE; - - // bug 141451 - We call this before receiving the error because on some - // systems the error closes the mDRequestForwarder data socket faster - // than we can process the control channel’s error code. - mDRequestForwarder->SetRetrying(PR_TRUE); - + rv = SendFTPCommand(retrStr); return rv; } @@ -1584,6 +1579,7 @@ nsFtpState::R_retr() { if (mResponseCode/100 == 5) { mRETRFailed = PR_TRUE; + mDRequestForwarder->SetRetrying(PR_TRUE); return FTP_S_PASV; }