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.
- package/hub/src/remote-hub.js +7 -0
- package/package.json +1 -1
package/hub/src/remote-hub.js
CHANGED
|
@@ -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;
|