mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
always flush
This commit is contained in:
@@ -1262,7 +1262,10 @@ function flushFirstWrite(self) {
|
||||
type: "direct",
|
||||
pull: controller => {
|
||||
self[controllerSymbol] = controller;
|
||||
if (firstWrite) controller.write(firstWrite);
|
||||
if (firstWrite) {
|
||||
controller.write(firstWrite);
|
||||
controller.flush(); // flush the first write
|
||||
}
|
||||
firstWrite = undefined;
|
||||
if (!self[finishedSymbol]) {
|
||||
const { promise, resolve } = $newPromiseCapability(GlobalPromise);
|
||||
|
||||
Reference in New Issue
Block a user