mirror of https://github.com/cabaletta/baritone
orderly shutdown
This commit is contained in:
parent
64a881f990
commit
46f38f2ce7
|
@ -467,6 +467,11 @@ public final class ElytraBehavior implements Helper {
|
|||
this.solver.cancel(true);
|
||||
}
|
||||
this.solverExecutor.shutdown();
|
||||
try {
|
||||
while (!this.solverExecutor.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS)) {}
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
this.context.destroy();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue