fix:修复舰R脚本多调用了一次start

This commit is contained in:
Yutousama 2022-07-25 12:58:22 +08:00
parent ef8d46aa64
commit 75b43e40e5
2 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,6 @@ public class JianRScriptController {
}
manager.setTask(script);
manager.start();
manager.start();
json.put("code", 0);
json.put("msg", "任务创建成功");
}

View File

@ -31,6 +31,9 @@ public class JianRTaskManager {
}
public void start() {
if(running){
return;
}
running = true;
new Thread(new Runnable() {