修复死循环
This commit is contained in:
@@ -303,6 +303,10 @@ async function executePathsUsingNodeData(position, settings) {
|
|||||||
currentNode = nextNode;
|
currentNode = nextNode;
|
||||||
currentNodePosition = { x: nextNode.position.x, y: nextNode.position.y };
|
currentNodePosition = { x: nextNode.position.x, y: nextNode.position.y };
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
log.info("当前路线完成,退出循环");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.error(`执行路径时出错: ${error.message}`);
|
log.error(`执行路径时出错: ${error.message}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user