This commit is contained in:
IanCao 2019-06-19 19:46:40 +08:00
parent 16f8a16cb3
commit 7b839d0f83

View File

@ -89,7 +89,7 @@ public class BeatReactor {
if (beatInfo.isStop()) {
return;
}
long nextTime = result > 0 ? System.currentTimeMillis() + result : System.currentTimeMillis() + beatInfo.getPeriod();
long nextTime = result > 0 ? result : beatInfo.getPeriod();
executorService.schedule(new BeatTask(beatInfo), nextTime, TimeUnit.MILLISECONDS);
}
}