fix:修复舰R脚本多调用了一次start
This commit is contained in:
parent
ef8d46aa64
commit
75b43e40e5
@ -30,7 +30,6 @@ public class JianRScriptController {
|
||||
}
|
||||
manager.setTask(script);
|
||||
manager.start();
|
||||
manager.start();
|
||||
json.put("code", 0);
|
||||
json.put("msg", "任务创建成功");
|
||||
}
|
||||
|
@ -31,6 +31,9 @@ public class JianRTaskManager {
|
||||
}
|
||||
|
||||
public void start() {
|
||||
if(running){
|
||||
return;
|
||||
}
|
||||
running = true;
|
||||
new Thread(new Runnable() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user