Commit 6b6791cc authored by liuyang's avatar liuyang

APK抓包>从频道1开始依次抓取, 修复抓包等待时间停止任务,重新开始后之前的任务仍在执行问题

#BYLSERVER-1693
parent 733f531c
...@@ -106,6 +106,7 @@ class TaskManager { ...@@ -106,6 +106,7 @@ class TaskManager {
} }
fun stop() { fun stop() {
Log.i(TAG, "stop")
this.isRunning = false this.isRunning = false
scheduleTime?.run { scheduleTime?.run {
cancel() cancel()
...@@ -114,6 +115,8 @@ class TaskManager { ...@@ -114,6 +115,8 @@ class TaskManager {
it.exit() it.exit()
} }
this.currentTask?.exit()
this.currentTask = null
this.tasks.clear() this.tasks.clear()
this.overTasks.clear() this.overTasks.clear()
} }
......
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