aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-17 14:50:12 +0200
committerChocobozzz <me@florianbigard.com>2023-05-17 14:50:12 +0200
commitf383c7c881baf7dae97c69ac4bcba5ab6916d35b (patch)
tree03f88962dcb6b1e039effb8fe517a10bb7e840a3 /server/lib
parentd38541fd59f3e590135612ea23a660a31b1eb68b (diff)
downloadPeerTube-f383c7c881baf7dae97c69ac4bcba5ab6916d35b.tar.gz
PeerTube-f383c7c881baf7dae97c69ac4bcba5ab6916d35b.tar.zst
PeerTube-f383c7c881baf7dae97c69ac4bcba5ab6916d35b.zip
Increase last runner contact update
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/runners/runner.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/runners/runner.ts b/server/lib/runners/runner.ts
index 74c814ba1..5478ab519 100644
--- a/server/lib/runners/runner.ts
+++ b/server/lib/runners/runner.ts
@@ -12,7 +12,7 @@ function updateLastRunnerContact (req: express.Request, runner: MRunner) {
12 const now = new Date() 12 const now = new Date()
13 13
14 // Don't update last runner contact too often 14 // Don't update last runner contact too often
15 if (now.getTime() - runner.lastContact.getTime() < 2000) return 15 if (now.getTime() - runner.lastContact.getTime() < 30000) return
16 if (updatingRunner.has(runner.id)) return 16 if (updatingRunner.has(runner.id)) return
17 17
18 updatingRunner.add(runner.id) 18 updatingRunner.add(runner.id)