fix(ext/http): actually await goAhead promise (#24226)

This commit is contained in:
Luca Casonato 2024-06-17 16:05:49 +02:00 committed by Bartek Iwańczuk
parent e92d44fbff
commit bff235a8ec
No known key found for this signature in database
GPG Key ID: 0C6BCDDC3B3AD750

View File

@ -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;