Skip to content

Commit

Permalink
Clear interval when disconnecting due to missed heartbeats
Browse files Browse the repository at this point in the history
  • Loading branch information
mdingena committed Apr 3, 2024
1 parent ab49c2a commit ab1b0b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Group/Group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export class Group extends TypedEmitter<Events> {
);

server.disconnect();
clearInterval(this.keepAlive);
}
}, this.client.config.serverHeartbeatInterval);
}
Expand Down

0 comments on commit ab1b0b7

Please sign in to comment.