Commit 88162ac4 authored by liuyang's avatar liuyang

APK图片抓取识别及轮播流地址抓取,客户端任务控制

#BYLSERVER-1438
parent d453a8b0
......@@ -16,8 +16,9 @@ class TaskManager {
private val runnable = Runnable {
val dist = System.currentTimeMillis() - updateTime
while (isRunning && this.status == 0) {
while (isRunning) {
if (this.status == IDLE) {
for (task in tasks) {
task.reset()
......@@ -26,6 +27,10 @@ class TaskManager {
}
this.status = COMPLETE
}
else {
Log.i(TAG, "no task running")
}
Thread.sleep(3 * 1000)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment