fix: remove DOM async to avoid mem leak
This commit is contained in:
parent
7deef868c9
commit
c00aa02e9f
|
@ -130,7 +130,9 @@ export class App extends decorate(class {}) {
|
|||
this.stopRendering();
|
||||
this.stopSimulation();
|
||||
this.stopProcessingInput();
|
||||
this.removeFromDom(document.querySelector('.app'));
|
||||
setTimeout(() => {
|
||||
this.removeFromDom(document.querySelector('.app'));
|
||||
}, 0);
|
||||
});
|
||||
this.socket.on('packet', this.onPacket, this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user