mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix to 'recent errors' check
This commit is contained in:
parent
8de31844d5
commit
7417e34e00
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ require("dotenv").config();
|
|||
|
||||
let recentErrors = 0;
|
||||
const RECENT_ERROR_EXIT_THRESHOLD = 5;
|
||||
setInterval(() => recentErrors--, 2500);
|
||||
setInterval(() => (recentErrors = Math.max(0, recentErrors - 1)), 2500);
|
||||
|
||||
process.on("unhandledRejection", (reason, p) => {
|
||||
console.error(reason);
|
||||
|
|
Loading…
Add table
Reference in a new issue