Fix #1491
This commit is contained in:
parent
29849041ba
commit
4c055f38b9
@ -86,10 +86,10 @@ public class BeatReactor {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
long result = serverProxy.sendBeat(beatInfo);
|
||||
if (beatInfo.isStopped()) {
|
||||
return;
|
||||
}
|
||||
long result = serverProxy.sendBeat(beatInfo);
|
||||
long nextTime = result > 0 ? result : beatInfo.getPeriod();
|
||||
executorService.schedule(new BeatTask(beatInfo), nextTime, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user