Skip to content

Commit

Permalink
fix: fix open-telemetry#5101 by checking if destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
dermasmid committed Oct 31, 2024
1 parent eb3ca4f commit 2bf72fe
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ export function sendWithHttp(
});

req.setTimeout(timeoutMillis, () => {
if (req.destroyed) {
return;
}
req.destroy();
onDone({
status: 'failure',
Expand Down

0 comments on commit 2bf72fe

Please sign in to comment.