We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07e17a3 commit ef3a708Copy full SHA for ef3a708
1 file changed
src/wol.js
@@ -309,11 +309,7 @@ async function waitForHostUp(url, options = {}) {
309
},
310
})
311
312
- if (res == null) {
313
- continue
314
- }
315
-
316
- if (res.ok && !res.headers.get("X-Redirect-Service")) {
+ if (res && res?.ok && !res.headers.get("X-Redirect-Service")) {
317
return true
318
}
319
@@ -401,6 +397,8 @@ async function startProcessing(req, res) {
401
397
402
398
errorClient(ws, err)
403
399
400
+ logger.debug("Waiting for service to come online...")
+
404
const isReady = await waitForHostUp(serviceURL)
405
406
if (!isReady) {
0 commit comments