rebroadcast: fix online state

This commit is contained in:
Koushik Dutta
2022-02-20 18:10:16 -08:00
parent fe75d0c19d
commit 3712847e24
3 changed files with 4 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.168",
"version": "0.1.169",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.168",
"version": "0.1.169",
"license": "Apache-2.0",
"dependencies": {
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.168",
"version": "0.1.169",
"description": "Rebroadcast and Prebuffer for VideoCameras.",
"author": "Scrypted",
"license": "Apache-2.0",

View File

@@ -816,7 +816,7 @@ class PrebufferMixin extends SettingsMixinDeviceBase<VideoCamera> implements Vid
const isBatteryPowered = this.mixinDeviceInterfaces.includes(ScryptedInterface.Battery);
let active = 0;
const total = ids.length;
const total = enabledIds.length;
for (const id of ids) {
let session = this.sessions.get(id);
if (!session) {