diff --git a/ext/node/polyfills/net.ts b/ext/node/polyfills/net.ts index 7498df81d6..b2b0c9857c 100644 --- a/ext/node/polyfills/net.ts +++ b/ext/node/polyfills/net.ts @@ -100,10 +100,7 @@ import { Pipe, PipeConnectWrap, } from "ext:deno_node/internal_binding/pipe_wrap.ts"; -import { - kStreamBaseField, - ShutdownWrap, -} from "ext:deno_node/internal_binding/stream_wrap.ts"; +import { ShutdownWrap } from "ext:deno_node/internal_binding/stream_wrap.ts"; import { assert } from "ext:deno_node/_util/asserts.ts"; import { isWindows } from "ext:deno_node/_util/os.ts"; import { ADDRCONFIG, lookup as dnsLookup } from "node:dns"; @@ -356,7 +353,6 @@ function _afterConnect( // Callback may come after call to destroy if (socket.destroyed) { - handle[kStreamBaseField]?.close(); return; }