|
|
|
@ -47,6 +47,7 @@ public class AmrConnectorThread extends Thread { |
|
|
|
// 计算中的任务
|
|
|
|
List<AmrDeviceTask> computingTaskList = new ArrayList<>(); |
|
|
|
while (running.get()) { |
|
|
|
Thread.sleep(1); |
|
|
|
if (paused.get()) { |
|
|
|
synchronized (pauseLock) { |
|
|
|
while (paused.get()) { |
|
|
|
@ -124,9 +125,9 @@ public class AmrConnectorThread extends Thread { |
|
|
|
|
|
|
|
} |
|
|
|
} catch (InterruptedException e) { |
|
|
|
System.out.println("Connector thread interrupted for executor: " + this.ptrAgvItem.getId()); |
|
|
|
log.error("Connector thread interrupted for executor: " + this.ptrAgvItem.getId(), e); |
|
|
|
} finally { |
|
|
|
System.out.println("Connector thread stopped for executor: " + this.ptrAgvItem.getId()); |
|
|
|
log.info("Connector thread stopped for executor: " + this.ptrAgvItem.getId()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|