Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f51f917 commit a1a8136Copy full SHA for a1a8136
lib/agent.js
@@ -110,6 +110,9 @@ class Agent extends DispatcherBase {
110
async [kClose] () {
111
const closePromises = []
112
for (const client of this[kClients].values()) {
113
+ if (client[kDeleteScheduled]) {
114
+ clearTimeout(client[kDeleteScheduled])
115
+ }
116
closePromises.push(client.close())
117
}
118
this[kClients].clear()
@@ -120,6 +123,9 @@ class Agent extends DispatcherBase {
120
123
async [kDestroy] (err) {
121
124
const destroyPromises = []
122
125
126
127
128
129
destroyPromises.push(client.destroy(err))
130
131
0 commit comments