We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea01649 commit 916e1bfCopy full SHA for 916e1bf
packages/next/src/server/pipe-readable.ts
@@ -58,7 +58,7 @@ export async function pipeReadable(
58
// will also ensure the read promise rejects and frees our resources.
59
if (!readerDone) {
60
readerDone = true
61
- if (!reader.closed) reader.cancel().catch(() => {})
+ reader.cancel().catch(() => {})
62
}
63
64
writable.on('close', onClose)
@@ -88,7 +88,7 @@ export async function pipeReadable(
88
// If we broke out of the loop because of a client disconnect, and the
89
// close event hasn't yet fired, we can early cancel.
90
91
92
93
94
// If the client hasn't disconnected yet, end the writable so that the
0 commit comments