Skip to content

Commit

Permalink
revert: Update lib/dispatcher/client-h2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 authored Oct 31, 2024
1 parent 4f4eff3 commit 2efc336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dispatcher/client-h2.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ function writeH2 (client, request) {
// On Abort, we close the stream to send RST_STREAM frame
stream.close()
// We delay the destroy to allow the stream to send the RST_STREAM frame
setImmediate(() => util.destroy(stream, err))
queueMicrotask(() => util.destroy(stream, err))
// We move the running index to the next request
client[kQueue][client[kRunningIdx]++] = null
client[kPendingIdx] = client[kRunningIdx]
Expand Down

0 comments on commit 2efc336

Please sign in to comment.