diff --git a/Custom-HTTP-Probe/server.js b/Custom-HTTP-Probe/server.js index 5119fed..8b0f0e8 100644 --- a/Custom-HTTP-Probe/server.js +++ b/Custom-HTTP-Probe/server.js @@ -86,7 +86,7 @@ router.get("/probe/liveness",function(req,res){ }); router.get("/probe/custom",function(req,res){ - if (alive) { + if (alive && countdown <= 0) { res.type('application/json') .status(418) .send(JSON.stringify(getState()))