mirror of https://github.com/cabaletta/baritone
Cancel before shutting down executor
This commit is contained in:
parent
395706edc9
commit
0290b344dc
|
@ -60,7 +60,12 @@ public final class NetherPathfinderContext {
|
|||
), this.executor);
|
||||
}
|
||||
|
||||
public void cancel() {
|
||||
NetherPathfinder.cancel(this.context);
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
this.cancel();
|
||||
// Ignore anything that was queued up, just shutdown the executor
|
||||
this.executor.shutdownNow();
|
||||
|
||||
|
|
Loading…
Reference in New Issue