From abc6981468d0a1d6d4228ee868a239aebe4cc63c Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 17 Jun 2024 16:05:49 +0200 Subject: [PATCH] fix(ext/http): actually await `goAhead` promise (#24226) --- ext/http/00_serve.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/http/00_serve.ts b/ext/http/00_serve.ts index 84b8cd321b..670b64676e 100644 --- a/ext/http/00_serve.ts +++ b/ext/http/00_serve.ts @@ -225,7 +225,7 @@ class InnerRequest { const wsRid = await wsPromise; // We have to wait for the go-ahead signal - await goAhead; + await goAhead.promise; ws[_rid] = wsRid; ws[_readyState] = WebSocket.OPEN;