Commit 5d126919 authored by Aral Balkan's avatar Aral Balkan
Browse files

Fixes #34: no longer throws on certificate renewal check

parent 5e4046b3
......@@ -351,7 +351,7 @@ export default class Certificate {
// And also once a day from thereon for as long as the server is running.
const onceADay = 24 /* hours */ * 60 /* minutes */ * 60 /* seconds */ * 1000 /* ms */
this.#checkForRenewalIntervalId = setInterval(this.checkForRenewal, onceADay)
this.#checkForRenewalIntervalId = setInterval(this.checkForRenewal.bind(this), onceADay)
log(' ⏰ ❨auto-encrypt❩ Set up timer to check for certificate renewal once a day.')
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment