removed comments
This commit is contained in:
parent
edbd0fd266
commit
cfb8cb8346
2 changed files with 1 additions and 8 deletions
|
|
@ -52,9 +52,8 @@ export default class CanvasReceiver {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
this.socket.on('webrtc_canvas_stop', (data: { id: string }) => {ц
|
this.socket.on('webrtc_canvas_stop', (data: { id: string }) => {
|
||||||
const { id } = data;
|
const { id } = data;
|
||||||
console.log('Connection closed', id);
|
|
||||||
const canvasId = getCanvasId(id);
|
const canvasId = getCanvasId(id);
|
||||||
this.connections.delete(id);
|
this.connections.delete(id);
|
||||||
this.streams.delete(id);
|
this.streams.delete(id);
|
||||||
|
|
|
||||||
|
|
@ -907,12 +907,6 @@ export default class Assist {
|
||||||
const int = setInterval(() => {
|
const int = setInterval(() => {
|
||||||
const isPresent = node.ownerDocument.defaultView && node.isConnected;
|
const isPresent = node.ownerDocument.defaultView && node.isConnected;
|
||||||
if (!isPresent) {
|
if (!isPresent) {
|
||||||
// canvasHandler.stop();
|
|
||||||
// this.canvasMap.delete(id);
|
|
||||||
// if (this.canvasPeers[id]) {
|
|
||||||
// this.canvasPeers[id]?.close();
|
|
||||||
// this.canvasPeers[id] = null;
|
|
||||||
// }
|
|
||||||
this.stopCanvasStream(id);
|
this.stopCanvasStream(id);
|
||||||
clearInterval(int);
|
clearInterval(int);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue