Skip to content

Commit ee34803

Browse files
committed
fix: playingPlayers going below zero
This commit fixes the bug that caused deflation of playing players value.
1 parent fdb5dd6 commit ee34803

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/connection/voiceHandler.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { debugLog, waitForEvent } from '../utils.js'
22
import config from '../../config.js'
3-
import constants from '../../constants.js'
43
import sources from '../sources.js'
54
import Filters from '../filters.js'
65

@@ -12,7 +11,7 @@ import discordVoice from '@performanc/voice'
1211

1312
globalThis.nodelinkPlayersCount = 0
1413
globalThis.nodelinkPlayingPlayersCount = 0
15-
14+
1615
class VoiceConnection {
1716
constructor(guildId, client) {
1817
nodelinkPlayersCount++
@@ -107,8 +106,6 @@ class VoiceConnection {
107106

108107
this.connection.on('error', (error) => {
109108
if (!this.config.track) return;
110-
111-
if (!this.config.paused) nodelinkPlayingPlayersCount--
112109

113110
debugLog('trackException', 2, { track: this.config.track.info, exception: error.message })
114111

0 commit comments

Comments
 (0)