Skip to content

Commit c99bade

Browse files
committed
Aborting already ends the connection
1 parent 4eb7dc7 commit c99bade

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/transport-node/src/transport.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,7 @@ export class TransportNode implements Types.Transport {
187187
if (this.pipePromise) {
188188
await this.pipePromise;
189189
}
190-
191-
this.socket?.removeAllListeners();
192-
this.socket?.end();
190+
this.socket?.destroy();
193191
} finally {
194192
this.socket = undefined;
195193
this.closingByUser = false;

0 commit comments

Comments
 (0)