Commit f8d8b53f authored by liuyang's avatar liuyang

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

#BYLSERVER-1438
parent 88162ac4
...@@ -12,10 +12,8 @@ class TaskManager { ...@@ -12,10 +12,8 @@ class TaskManager {
private var status = IDLE private var status = IDLE
private var currentTask: Task ?= null private var currentTask: Task ?= null
// 处理时间 // 处理时间
var updateTime = 0L
private val runnable = Runnable { private val runnable = Runnable {
val dist = System.currentTimeMillis() - updateTime
while (isRunning) { while (isRunning) {
if (this.status == IDLE) { if (this.status == IDLE) {
...@@ -81,7 +79,6 @@ class TaskManager { ...@@ -81,7 +79,6 @@ class TaskManager {
} }
fun stop() { fun stop() {
updateTime = 0L
this.tasks.forEach { this.tasks.forEach {
it.destroy() it.destroy()
} }
......
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