mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #1442 - Part 19 - FetchStream must support multiple read requests. https://bugzilla.mozilla.org/show_bug.cgi?id=1395220
This commit is contained in:
parent
b898780bb1
commit
0e1efcb273
1 changed files with 7 additions and 1 deletions
|
|
@ -185,7 +185,13 @@ FetchStream::RequestDataCallback(JSContext* aCx,
|
|||
RefPtr<FetchStream> stream = static_cast<FetchStream*>(aUnderlyingSource);
|
||||
|
||||
MOZ_DIAGNOSTIC_ASSERT(stream->mState == eWaiting ||
|
||||
stream->mState == eChecking);
|
||||
stream->mState == eChecking ||
|
||||
stream->mState == eReading);
|
||||
|
||||
if (stream->mState == eReading) {
|
||||
// We are already reading data.
|
||||
return;
|
||||
}
|
||||
|
||||
if (stream->mState == eChecking) {
|
||||
// If we are looking for more data, there is nothing else we should do:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue