fix: remove DOM async to avoid mem leak

This commit is contained in:
cha0s 2019-04-20 21:47:40 -05:00
parent 7deef868c9
commit c00aa02e9f

View File

@ -130,7 +130,9 @@ export class App extends decorate(class {}) {
this.stopRendering();
this.stopSimulation();
this.stopProcessingInput();
setTimeout(() => {
this.removeFromDom(document.querySelector('.app'));
}, 0);
});
this.socket.on('packet', this.onPacket, this);
}