From c18ec32c855526fffb6db7f02b884a85b64aa99f Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 13 May 2021 04:09:56 +0200 Subject: [PATCH] Protect against closed streams in recomputeUserStreams. --- static/protocol.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/protocol.js b/static/protocol.js index 9ac2994..d2ed182 100644 --- a/static/protocol.js +++ b/static/protocol.js @@ -1068,6 +1068,8 @@ function recomputeUserStreams(sc, id, c) { for(id in sc.down) { let c = sc.down[id]; + if(!c.stream) + continue; if(!user.down[c.label]) user.down[c.label] = {}; c.stream.getTracks().forEach(t => {