fix:修复舰R脚本多调用了一次start
This commit is contained in:
parent
ef8d46aa64
commit
75b43e40e5
@ -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", "任务创建成功");
|
||||||
}
|
}
|
||||||
|
@ -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() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user