Increase last runner contact update

pull/5817/head
Chocobozzz 2023-05-17 14:50:12 +02:00
parent d38541fd59
commit f383c7c881
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function updateLastRunnerContact (req: express.Request, runner: MRunner) {
const now = new Date()
// Don't update last runner contact too often
if (now.getTime() - runner.lastContact.getTime() < 2000) return
if (now.getTime() - runner.lastContact.getTime() < 30000) return
if (updatingRunner.has(runner.id)) return
updatingRunner.add(runner.id)