diff --git a/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp b/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp index bac3c4548a2..9165a18468a 100644 --- a/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp +++ b/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp @@ -150,7 +150,7 @@ nsFtpState::OnControlDataAvailable(const char *aData, PRUint32 aDataLen) buffer.Append(aData, aDataLen); const char* currLine = buffer.get(); - while (*currLine) { + while (*currLine && mKeepRunning) { PRInt32 eolLength = strcspn(currLine, CRLF); PRInt32 currLineLength = strlen(currLine);