cvmts: fix memory leak

javascript blows chunks
This commit is contained in:
modeco80
2024-09-12 13:11:12 -04:00
parent 9d57779c75
commit 210e36f430

View File

@@ -890,7 +890,9 @@ export default class CollabVMServer {
for (let rect of self.rectQueue) promises.push(doRect(rect)); for (let rect of self.rectQueue) promises.push(doRect(rect));
this.rectQueue = []; // javascript is a very solidly designed language with no holes
// or usability traps inside of it whatsoever
this.rectQueue.length = 0;
await Promise.all(promises); await Promise.all(promises);
} }