1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

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

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 => {