removed comments
This commit is contained in:
parent
a622a8c232
commit
97c7dcbf21
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;
|
||||
console.log('Connection closed', id);
|
||||
const canvasId = getCanvasId(id);
|
||||
this.connections.delete(id);
|
||||
this.streams.delete(id);
|
||||
|
|
|
|||
|
|
@ -934,12 +934,6 @@ export default class Assist {
|
|||
const int = setInterval(() => {
|
||||
const isPresent = node.ownerDocument.defaultView && node.isConnected;
|
||||
if (!isPresent) {
|
||||
// canvasHandler.stop();
|
||||
// this.canvasMap.delete(id);
|
||||
// if (this.canvasPeers[id]) {
|
||||
// this.canvasPeers[id]?.close();
|
||||
// this.canvasPeers[id] = null;
|
||||
// }
|
||||
this.stopCanvasStream(id);
|
||||
clearInterval(int);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue