From a162b8bf07606bf74bb6fbde51937d17126e9ac1 Mon Sep 17 00:00:00 2001 From: Sebastien DUMETZ Date: Wed, 27 Nov 2024 16:57:41 +0100 Subject: [PATCH] add missing await on drain event for GET /scenes/:scene --- source/server/routes/scenes/scene/get.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/server/routes/scenes/scene/get.ts b/source/server/routes/scenes/scene/get.ts index 694ca613..90c1388f 100644 --- a/source/server/routes/scenes/scene/get.ts +++ b/source/server/routes/scenes/scene/get.ts @@ -59,7 +59,7 @@ export default async function getScene(req :Request, res :Response){ res.status(200); for await (let data of zip(getFiles())){ let again = res.write(data); - if(!again) once(res, "drain"); + if(!again) await once(res, "drain"); } res.end(); }