Skip to content

Commit

Permalink
fix: use util.destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag authored and crysmags committed Feb 27, 2024
1 parent 17ae174 commit 3963847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ function write (client, request) {
request.onError(err || new RequestAbortedError())
assert(request.aborted)

socket.destroy(new InformationalError('aborted'))
util.destroy(socket, new InformationalError('aborted'))
})
} catch (err) {
request.onError(err)
Expand Down

0 comments on commit 3963847

Please sign in to comment.