From ae7b79b673290f2c8b51b191d166271501687c5d Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Sun, 27 Jun 2004 13:05:06 +0000 Subject: [PATCH] bug 248201 necko should not overwrite specific error code when trying to resume a dir listing r=dougt sr=darin git-svn-id: svn://10.0.0.236/trunk@158529 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp b/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp index 263678627e3..cdbb42af831 100644 --- a/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp +++ b/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp @@ -808,8 +808,10 @@ nsFtpState::Process() // LIST case FTP_S_LIST: rv = S_list(); - - if (NS_FAILED(rv)) + + if (rv == NS_ERROR_NOT_RESUMABLE) + mInternalError = rv; + else if (NS_FAILED(rv)) mInternalError = NS_ERROR_FTP_CWD; MoveToNextState(FTP_R_LIST);