mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 01:49:37 +00:00 
			
		
		
		
	Update Streamer class
This commit is contained in:
		@@ -38,12 +38,13 @@ module.exports = class {
 | 
			
		||||
                logger('Streamer', station.name + " / " + "Error");
 | 
			
		||||
                this.map.delete(station.name);
 | 
			
		||||
            });
 | 
			
		||||
        return audioPlayer;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    listen(station) {
 | 
			
		||||
        let audioPlayer = this.map.get(station.name);
 | 
			
		||||
        if(!audioPlayer){
 | 
			
		||||
            this.play(station);
 | 
			
		||||
            audioPlayer = this.play(station);
 | 
			
		||||
        }
 | 
			
		||||
        return audioPlayer;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user