remove destructor given unerliable
parent
816c793c5a
commit
4145bea3ba
|
|
@ -127,17 +127,6 @@ class RTC {
|
||||||
this.streams[stream.id] = new Remote(stream.id, stream);
|
this.streams[stream.id] = new Remote(stream.id, stream);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
this.conn.oniceconnectionstatechange = (event) => {
|
|
||||||
switch (this.conn.iceConnectionState) {
|
|
||||||
case "disconnected":
|
|
||||||
case "failed":
|
|
||||||
case "closed":
|
|
||||||
for (var k in this.streams) {
|
|
||||||
this.streams[k].destructor();
|
|
||||||
delete this.streams[k];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.conn.addStream(stream);
|
this.conn.addStream(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue