From 317024ed7268e612611117e3bca1a458f365aae1 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Fri, 19 May 2023 18:52:00 +0800 Subject: [PATCH] Fix: Use safebeat for push monitor --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index b5e58c574..b1955250b 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -481,7 +481,7 @@ class Monitor extends BeanModel { // No need to insert successful heartbeat for push type, so end here retries = 0; log.debug("monitor", `[${this.name}] timeout = ${timeout}`); - this.heartbeatInterval = setTimeout(beat, timeout); + this.heartbeatInterval = setTimeout(safeBeat, timeout); return; } } else {