Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Commit

Permalink
Fix #156
Browse files Browse the repository at this point in the history
  • Loading branch information
melike2d committed Jan 16, 2022
1 parent ce444ad commit 665d67b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/structures/Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,13 @@ export class Manager extends EventEmitter {
'"clientId" is not set. Pass it in Manager#init() or as a option in the constructor.'
);

for (const node of this.nodes.values()) node.connect();
for (const node of this.nodes.values()) {
try {
node.connect();
} catch (err) {
this.emit("nodeError", node, err);
}
}

this.initiated = true;
return this;
Expand Down

0 comments on commit 665d67b

Please sign in to comment.