diff --git a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp b/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp index 263678627e38..cdbb42af8319 100644 --- a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp +++ b/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);