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.setTask(script);
manager.start(); manager.start();
manager.start();
json.put("code", 0); json.put("code", 0);
json.put("msg", "任务创建成功"); json.put("msg", "任务创建成功");
} }

View File

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