Fix CompletableFutureSegment didn't reset after interaction
This commit is contained in:
@@ -19,10 +19,12 @@ public class CompletableFutureSegment<T extends Movable> implements PathSegment<
|
||||
}
|
||||
|
||||
if (future.isCancelled() || future.isCompletedExceptionally()) {
|
||||
this.future = null;
|
||||
return PathProgress.SEGMENT_FAILED;
|
||||
}
|
||||
|
||||
if (future.isDone()) {
|
||||
this.future = null;
|
||||
return PathProgress.SEGMENT_DONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user