From 3712847e24dfd6552bf129b74453be8655a97965 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 20 Feb 2022 18:10:16 -0800 Subject: [PATCH] rebroadcast: fix online state --- plugins/prebuffer-mixin/package-lock.json | 4 ++-- plugins/prebuffer-mixin/package.json | 2 +- plugins/prebuffer-mixin/src/main.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/prebuffer-mixin/package-lock.json b/plugins/prebuffer-mixin/package-lock.json index e5556b4ea..462878587 100644 --- a/plugins/prebuffer-mixin/package-lock.json +++ b/plugins/prebuffer-mixin/package-lock.json @@ -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", diff --git a/plugins/prebuffer-mixin/package.json b/plugins/prebuffer-mixin/package.json index fe7985ff4..980a60b54 100644 --- a/plugins/prebuffer-mixin/package.json +++ b/plugins/prebuffer-mixin/package.json @@ -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", diff --git a/plugins/prebuffer-mixin/src/main.ts b/plugins/prebuffer-mixin/src/main.ts index 5f0deefc6..22c8cc2c2 100644 --- a/plugins/prebuffer-mixin/src/main.ts +++ b/plugins/prebuffer-mixin/src/main.ts @@ -816,7 +816,7 @@ class PrebufferMixin extends SettingsMixinDeviceBase 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) {