chore: fix close for ConnectionManager (#861)

This commit is contained in:
Samlior
2021-01-21 19:09:53 +08:00
committed by GitHub
parent 67067c97d5
commit a28c878f4a
2 changed files with 37 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class ConnectionManager extends EventEmitter {
}
}
await tasks
await Promise.all(tasks)
this.connections.clear()
}