Force cleanup of lingering render jobs (avoid shutdown exceptions)

This commit is contained in:
Mike Primm 2022-01-30 13:29:37 -06:00
parent 7fe8feb08d
commit fd420f739f
1 changed files with 6 additions and 0 deletions

View File

@ -1635,6 +1635,12 @@ public class MapManager {
render_pool.awaitTermination(5, TimeUnit.SECONDS);
} catch (InterruptedException ix) {
}
render_pool.shutdownNow(); // Force hard shutdown
try {
render_pool.awaitTermination(5, TimeUnit.SECONDS);
} catch (InterruptedException ix) {
}
mapman = null;
hdmapman = null;
did_start = false;