attempt to fix #197

This commit is contained in:
PrototypeTrousers
2023-01-09 02:26:48 -03:00
parent 9bbd0ad61b
commit d9b4410c94
2 changed files with 6 additions and 14 deletions
@@ -138,18 +138,12 @@ public final class CompassService {
public void kill() {
this.executor.shutdown();
try {
this.executor.awaitTermination(6, TimeUnit.MINUTES);
this.jobSize = 0;
for (final CompassReader cr : this.worldSet.values()) {
cr.close();
}
this.worldSet.clear();
} catch (final InterruptedException e) {
// wrap this up..
this.jobSize = 0;
for (final CompassReader cr : this.worldSet.values()) {
cr.close();
}
this.worldSet.clear();
}
private CompassReader getReader(final World w) {