From 344fd5250134c2d88e6fa44c76c453842660ee40 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Wed, 9 Oct 2024 07:18:55 +0800 Subject: [PATCH] Avoid Uptime Kuma getting stop if one monitor is gone wrong --- server/server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 3579df5d2..59d636259 100644 --- a/server/server.js +++ b/server/server.js @@ -1803,7 +1803,11 @@ async function startMonitors() { } for (let monitor of list) { - await monitor.start(io); + try { + await monitor.start(io); + } catch (e) { + log.error("monitor", e); + } // Give some delays, so all monitors won't make request at the same moment when just start the server. await sleep(getRandomInt(300, 1000)); }