Browse Source

fix monitor.stop() in some cases

pull/361/head
LouisLam 3 years ago
parent
commit
6006038689
  1. 4
      server/model/monitor.js

4
server/model/monitor.js

@ -309,14 +309,18 @@ class Monitor extends BeanModel {
previousBeat = bean;
if (! this.isStop) {
this.heartbeatInterval = setTimeout(beat, this.interval * 1000);
}
}
beat();
}
stop() {
clearTimeout(this.heartbeatInterval);
this.isStop = true;
}
/**

Loading…
Cancel
Save