From ffab70d423b31a72aa991d39f3e7bfb3d9dc70e9 Mon Sep 17 00:00:00 2001 From: Jason Duell Date: Thu, 7 Feb 2013 20:36:00 -0800 Subject: [PATCH] Bug 838988 - Incorrect download status in nsIRequest::OnStopRequest r=honza --- netwerk/base/src/nsInputStreamPump.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netwerk/base/src/nsInputStreamPump.cpp b/netwerk/base/src/nsInputStreamPump.cpp index 618b020ff9ff..9c8b4b34a102 100644 --- a/netwerk/base/src/nsInputStreamPump.cpp +++ b/netwerk/base/src/nsInputStreamPump.cpp @@ -526,6 +526,8 @@ nsInputStreamPump::OnStateTransfer() rv = mAsyncStream->Available(&avail); if (NS_SUCCEEDED(rv)) return STATE_TRANSFER; + if (rv != NS_BASE_STREAM_CLOSED) + mStatus = rv; } } return STATE_STOP;