From 49571886301fc96707a62acb522cabc71a7e817d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Tue, 4 Oct 2022 10:25:31 +0200 Subject: [PATCH] If a previous pathfinding job is done, reset it to undefined --- src/ruler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ruler.js b/src/ruler.js index c519fc7..6bbf9eb 100644 --- a/src/ruler.js +++ b/src/ruler.js @@ -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); }