mirror of
https://codeberg.org/ashley/poke
synced 2025-04-06 01:27:59 +00:00
reload if it lags
This commit is contained in:
parent
5f0bbfbb50
commit
1213b99c83
@ -101,6 +101,7 @@ toobusy.maxLag(3500);
|
|||||||
});
|
});
|
||||||
|
|
||||||
toobusy.onLag(function(currentLag) {
|
toobusy.onLag(function(currentLag) {
|
||||||
|
process.exit(1);
|
||||||
console.log("Event loop lag detected! Latency: " + currentLag + "ms");
|
console.log("Event loop lag detected! Latency: " + currentLag + "ms");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user