mirror of https://github.com/webbukkit/dynmap.git
Force cleanup of lingering render jobs (avoid shutdown exceptions)
This commit is contained in:
parent
7fe8feb08d
commit
fd420f739f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue