Skip to content

Commit

Permalink
Merge pull request #3174 from chakflying/fix/push-monitor-safe-restart
Browse files Browse the repository at this point in the history
Fix: Use safeBeat in push monitor
  • Loading branch information
louislam authored Jul 13, 2023
2 parents e5c6783 + 317024e commit e7d1b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,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 {
Expand Down

0 comments on commit e7d1b4e

Please sign in to comment.