remove destructor given unerliable
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user