Bug 1313923 - Drop reference to the cache pump after a cache partial read finishes. r=mayhemer

This commit is contained in:
Dragana Damjanovic 2016-11-03 01:48:00 +01:00
Родитель 76488739a9
Коммит 194e1c59d3
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -3128,6 +3128,9 @@ nsHttpChannel::OnDoneReadingPartialCacheEntry(bool *streamDone)
// we're now completing the cached content, so we can clear this flag.
// this puts us in the state of a regular download.
mCachedContentIsPartial = false;
// The cache input stream pump is finished, we do not need it any more.
// (see bug 1313923)
mCachePump = nullptr;
// resume the transaction if it exists, otherwise the pipe contained the
// remaining part of the document and we've now streamed all of the data.