Skip to content

Commit

Permalink
revert a1a8136 (#2539)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev authored Dec 24, 2023
1 parent d56cd7d commit f9efd23
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 f9efd23

Please sign in to comment.