зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1470355 - BufferWriter should stop reading data when the wanted amount has been reached, r=michal
This commit is contained in:
Родитель
dd9505228b
Коммит
9b09232ce9
|
@ -1674,6 +1674,11 @@ private:
|
|||
if (mCount != -1) {
|
||||
MOZ_ASSERT(mCount >= writtenData);
|
||||
mCount -= writtenData;
|
||||
|
||||
// Is this the end of the reading?
|
||||
if (mCount == 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
continue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче