Skip to content

Commit

Permalink
Merge pull request #12 from kyc3/patch-1
Browse files Browse the repository at this point in the history
Fix: destroy socket client to prevent re-calling callback
  • Loading branch information
mrothenbuecher authored May 3, 2023
2 parents 358c629 + 2e2db64 commit 6020f60
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 6020f60

Please sign in to comment.