livedesk 0.1.236 → 0.1.237

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.
@@ -4818,6 +4818,13 @@ export function createRemoteHub(options = {}) {
4818
4818
  }
4819
4819
 
4820
4820
  function getDeviceLiveStream(device, streamId) {
4821
+ // A stop request can race with agent disconnect cleanup. In that
4822
+ // window the device has already been removed from the registry, so
4823
+ // there is no object on which ensureDeviceLiveStreams can attach its
4824
+ // per-device stream map.
4825
+ if (!device || typeof device !== 'object') {
4826
+ return null;
4827
+ }
4821
4828
  const id = safeString(streamId, 128);
4822
4829
  if (!id) {
4823
4830
  return device?.activeLiveStream || null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livedesk",
3
- "version": "0.1.236",
3
+ "version": "0.1.237",
4
4
  "description": "LiveDesk Hub and client launcher",
5
5
  "type": "module",
6
6
  "bin": {