diff --git a/src/main/plugins/chromecast.ts b/src/main/plugins/chromecast.ts index d140cd84..07a1a18d 100644 --- a/src/main/plugins/chromecast.ts +++ b/src/main/plugins/chromecast.ts @@ -272,6 +272,10 @@ export default class ChromecastPlugin { if (err) throw err; console.log("playing ..."); }); + if (!this.connectedHosts[device.host]) { + this.connectedHosts[device.host] = client; + this.activeConnections.push(client); + } } catch (e) {} } }