reload if it lags

This commit is contained in:
Ashley //// 2024-02-11 10:36:33 +00:00
parent 5f0bbfbb50
commit 1213b99c83

View file

@ -101,6 +101,7 @@ toobusy.maxLag(3500);
});
toobusy.onLag(function(currentLag) {
process.exit(1);
console.log("Event loop lag detected! Latency: " + currentLag + "ms");
});