mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 03:28:35 +01:00
reload if it lags
This commit is contained in:
parent
5f0bbfbb50
commit
1213b99c83
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ toobusy.maxLag(3500);
|
|||
});
|
||||
|
||||
toobusy.onLag(function(currentLag) {
|
||||
process.exit(1);
|
||||
console.log("Event loop lag detected! Latency: " + currentLag + "ms");
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue