refs #4550 hotfix: reconnectTimeout cast to ms
gitea/printnatura/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2023-01-12 16:48:27 +01:00
parent d3ca5c2e87
commit 288ee7a3af
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class PrintServer {
this.pollTimeout = null;
let delay = this.conf.refreshRate;
await this.getJobs();
if (this.dbDown) delay = this.conf.reconnectTimeout;
if (this.dbDown) delay = this.conf.reconnectTimeout * 1000;
this.pollTimeout = setTimeout(() => this.poll(), delay);
}
async getJobs() {