fix spamming of getSongInfo packet

This commit is contained in:
dank074 2023-01-14 15:45:54 -06:00
parent 2aeee63433
commit cef89934d3

View File

@ -315,7 +315,7 @@ export class MusicController implements IMusicController
private requestSong(songId: number, arg2: boolean): void private requestSong(songId: number, arg2: boolean): void
{ {
if(!this._requestedSongs.get(songId)) if(this._requestedSongs.get(songId) === undefined)
{ {
this._requestedSongs.set(songId, arg2); this._requestedSongs.set(songId, arg2);
this._songRequestList.push(songId); this._songRequestList.push(songId);