net: remove redundant item resolving.
This commit is contained in:
parent
acecd5ee37
commit
a15b1e2d62
@ -192,10 +192,6 @@ class Pool extends EventEmitter {
|
||||
async close() {
|
||||
assert(this.opened, 'Pool is not open.');
|
||||
this.opened = false;
|
||||
|
||||
for (const item of this.invMap.values())
|
||||
item.resolve();
|
||||
|
||||
return this.disconnect();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user