Skip to content

Commit

Permalink
fix: destroy socket client to prevent re-calling callback
Browse files Browse the repository at this point in the history
  • Loading branch information
kyc3 authored May 3, 2023
1 parent 358c629 commit 2e2db64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function executeRequest(job, callback) {
job.failed = true;
job.error = "connection timed out";
callback(job);
client.end();
client.destroy();
});

client.connect({
Expand Down

0 comments on commit 2e2db64

Please sign in to comment.