diff --git a/src/client/classes/Streamer.js b/src/client/classes/Streamer.js index 90c3b02..ed500f4 100644 --- a/src/client/classes/Streamer.js +++ b/src/client/classes/Streamer.js @@ -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; }