Skip to content

Commit

Permalink
revert a1a8136 (nodejs#2539)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev authored and crysmags committed Feb 27, 2024
1 parent cd72842 commit 1c6add7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ class Agent extends DispatcherBase {
async [kClose] () {
const closePromises = []
for (const client of this[kClients].values()) {
if (client[kDeleteScheduled]) {
clearTimeout(client[kDeleteScheduled])
}
closePromises.push(client.close())
}
this[kClients].clear()
Expand All @@ -123,9 +120,6 @@ class Agent extends DispatcherBase {
async [kDestroy] (err) {
const destroyPromises = []
for (const client of this[kClients].values()) {
if (client[kDeleteScheduled]) {
clearTimeout(client[kDeleteScheduled])
}
destroyPromises.push(client.destroy(err))
}
this[kClients].clear()
Expand Down

0 comments on commit 1c6add7

Please sign in to comment.