mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
fix: critical memory leak.
This commit is contained in:
parent
e61c5bf880
commit
a715462b65
@ -35,6 +35,7 @@ export default function() {
|
|||||||
};
|
};
|
||||||
ev.emit('serverStats', stats);
|
ev.emit('serverStats', stats);
|
||||||
log.push(stats);
|
log.push(stats);
|
||||||
|
if (log.length > 50) log.shift();
|
||||||
}
|
}
|
||||||
|
|
||||||
tick();
|
tick();
|
||||||
|
Loading…
Reference in New Issue
Block a user