If a previous pathfinding job is done, reset it to undefined

This commit is contained in:
Manuel Vögele committed 2022-10-04 10:25:55 +02:00
1 parent 944ff96a26
commit 4957188630
1 file changed
+1
+1
View File
@@ -126,6 +126,7 @@ export function extendRuler() {
this.pathfindingJob = pathfindingJob;
return this.pathfindingJob.then(result => {
if (pathfindingJob === this.pathfindingJob) {
this.pathfindingJob = undefined;
this.addPathToWaypoints(result?.path);
return this.performPostPathfindingActions(options);
}