)
let server = undefined
- // refresh the config immediately, then every 5 seconds,
+ // refresh the config immediately, then every 1 second,
// use setTimeout() instead of setInterval() to avoid bunches
// of calls after the computer has been suspended for a while
let refresh_config = async () => {
catch (err) {
console.error(err.stack || err.message)
}
- setTimeout(refresh_config, 5000)
+ setTimeout(refresh_config, 1000)
// returned Promise will be ignored
}
refresh_config()