diff options
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/polyfills/http.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts index 391906c40..17ab8ce31 100644 --- a/ext/node/polyfills/http.ts +++ b/ext/node/polyfills/http.ts @@ -629,14 +629,13 @@ class ClientRequest extends OutgoingMessage { core.tryClose(this._bodyWriteRid); } - - try { - cb?.(); - } catch (_) { - // - } })(), ]); + try { + cb?.(); + } catch (_) { + // + } if (this._timeout) { this._timeout.removeEventListener("abort", this._timeoutCb); webClearTimeout(this._timeout[timerId]); |