Skip to content

Commit 3af37bf

Browse files
committed
Extend the still-running-dont-update-again delay
This reduces unnecessary bandwidth for everybody. Shouldn't happen much, but good to avoid regardless. We do want to keep some kind of checking, in case one release quickly follows another, which could happen if there's an unexpectedly broken release or an urgent hotfix required.
1 parent 43889d7 commit 3af37bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ export async function runHTK(options: {
236236
if (isErrorLike(error)) {
237237
// Did we receive a successful update, that wants to restart the server:
238238
if (error.code === 'EEXIT') {
239-
// Block future update checks for one hour.
239+
// Block future update checks for 6 hours.
240240

241241
// If we don't, we'll redownload the same update again every check.
242242
// We don't want to block it completely though, in case this server
243243
// stays open for a very long time.
244-
return delay(1000 * 60 * 60);
244+
return delay(1000 * 60 * 60 * 6);
245245
}
246246

247247
// Report any HTTP response errors cleanly & explicitly:

0 commit comments

Comments
 (0)