fix: error renewing certificate
Massimo Melina committed
Nov 29, 2024 at 19:52 UTC
fdc6c9b8fa4d0e753a27053679dd1cabedba936a
1 file changed
+1
src/listen.ts
+1
@@ -163,6 +163,7 @@ for (const cfg of httpsNeeds) {
163
httpsOptions[k] = ''
164
unwatch = watchLoad(v, async data => {
165
httpsOptions[k] = data
166
+ await wait(500) // when a file is written, give some time for the other to be ready
167
await considerHttps()
168
}, { immediateFirst: true }).unwatch
169
await considerHttps()