Protect against closed streams in recomputeUserStreams.

This commit is contained in:
Juliusz Chroboczek
2021-05-13 04:09:56 +02:00
parent d236f4c6df
commit c18ec32c85
+2
View File
@@ -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 => {