Update Streamer class

This commit is contained in:
Christer Warén 2021-12-19 20:40:17 +02:00
parent e261e42e0c
commit 7225b4f60d

View File

@ -107,7 +107,7 @@ module.exports = class {
listen(station) { listen(station) {
let audioPlayer = this.map.get(station.name); let audioPlayer = this.map.get(station.name);
if(!audioPlayer || this.mode == "manual" && audioPlayer.subscribers.length != 0) audioPlayer = this.play(station); if(!audioPlayer || this.mode == "manual" && audioPlayer.subscribers.length == 0) audioPlayer = this.play(station);
return audioPlayer; return audioPlayer;
} }