提交 5aae02f6 编写于 作者: Y youyong

modify the alarm thread time

上级 b3465a9d
......@@ -47,20 +47,18 @@ public class AlarmTask implements Task {
long duration = System.currentTimeMillis() - time;
try {
if (duration < 30 * 1000) {
Thread.sleep(30 * 1000 - duration);
if (duration < 29 * 1000) {
try {
Thread.sleep(29 * 1000 - duration);
} catch (InterruptedException e) {
active = false;
}
} catch (InterruptedException e) {
active = false;
}
try {
Thread.sleep(3 * 1000 - duration);
Thread.sleep(1000);
} catch (InterruptedException e) {
active = false;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册