i don't even know

This commit is contained in:
May 2023-11-17 21:00:09 +00:00 committed by GitHub
parent f3e9f58ea4
commit edc3e2c719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -476,8 +476,10 @@ export default class Files {
while (response) { while (response) {
let nextChunk = await getNextChunk() let nextChunk = await getNextChunk()
// idk why this line was below but i moved it on top
// hopefully it wasn't for some other weird reason
if (!nextChunk || typeof nextChunk == "string") return
response = await pushWebStream(this, nextChunk) response = await pushWebStream(this, nextChunk)
if (!nextChunk) return
} }
lastChunkSent = true lastChunkSent = true
}) })