Skip to content

Commit 3b544c4

Browse files
committed
remove unecessary clearTimeout
1 parent e96c247 commit 3b544c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/structures/Node.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ export class LavalinkNode {
496496

497497
this.resetAckTimeouts(false, true);
498498

499-
if (this.pingTimeout) clearTimeout(this.pingTimeout);
500499
this.pingTimeout = setTimeout(() => {
501500
this.pingTimeout = null;
502501
if (!this.socket) {
@@ -1180,7 +1179,7 @@ export class LavalinkNode {
11801179
if (this.options.enablePingOnStatsCheck) this.heartBeat();
11811180

11821181
if (this.heartBeatInterval) clearInterval(this.heartBeatInterval);
1183-
1182+
11841183
if (this.options.heartBeatInterval > 0) {
11851184
// everytime a pong happens, set this.isAlive to true
11861185
this.socket.on("pong", () => {

0 commit comments

Comments
 (0)