Merge pull request #3174 from chakflying/fix/push-monitor-safe-restart

Fix: Use safeBeat in push monitor
This commit is contained in:
Louis Lam 2023-07-13 23:14:28 +08:00 committed by GitHub
commit e7d1b4e14a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -544,7 +544,7 @@ class Monitor extends BeanModel {
// No need to insert successful heartbeat for push type, so end here // No need to insert successful heartbeat for push type, so end here
retries = 0; retries = 0;
log.debug("monitor", `[${this.name}] timeout = ${timeout}`); log.debug("monitor", `[${this.name}] timeout = ${timeout}`);
this.heartbeatInterval = setTimeout(beat, timeout); this.heartbeatInterval = setTimeout(safeBeat, timeout);
return; return;
} }
} else { } else {