@camstack/system 1.2.100 → 1.2.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1320,6 +1320,7 @@ var SnapshotAddon = class SnapshotAddon extends require_dist.BaseAddon {
1320
1320
  async captureOnWake(deviceId) {
1321
1321
  for (let attempt = 0; attempt < 2; attempt += 1) {
1322
1322
  if (attempt > 0) await new Promise((r) => setTimeout(r, WAKE_CAPTURE_RETRY_MS));
1323
+ if ((await this.resolveSnapshotState(deviceId, await this.lookupDeviceMeta(deviceId)).catch(() => null))?.reason === "sleeping") return;
1323
1324
  try {
1324
1325
  if (await this.getSnapshot({
1325
1326
  deviceId,
@@ -1314,6 +1314,7 @@ var SnapshotAddon = class SnapshotAddon extends BaseAddon {
1314
1314
  async captureOnWake(deviceId) {
1315
1315
  for (let attempt = 0; attempt < 2; attempt += 1) {
1316
1316
  if (attempt > 0) await new Promise((r) => setTimeout(r, WAKE_CAPTURE_RETRY_MS));
1317
+ if ((await this.resolveSnapshotState(deviceId, await this.lookupDeviceMeta(deviceId)).catch(() => null))?.reason === "sleeping") return;
1317
1318
  try {
1318
1319
  if (await this.getSnapshot({
1319
1320
  deviceId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/system",
3
- "version": "1.2.100",
3
+ "version": "1.2.101",
4
4
  "description": "Core addon for CamStack — builtins, pipeline, process management, auth, logging, events",
5
5
  "keywords": [
6
6
  "camstack",