Fix: Use safebeat for push monitor

pull/3174/head
Nelson Chan 2023-05-19 18:52:00 +08:00
parent 9dc02bb8e2
commit 317024ed72
1 changed files with 1 additions and 1 deletions

View File

@ -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 {