mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-26 12:35:11 +01:00
Merge branch 'base'
This commit is contained in:
commit
591f84972c
@ -340,15 +340,19 @@ public synchronized void unload() {
|
||||
serverInterface.unregisterAllListeners();
|
||||
|
||||
//stop scheduled threads
|
||||
if (metricsThread != null) metricsThread.interrupt();
|
||||
try {metricsThread.join(1000);} catch (InterruptedException ignore) { Thread.currentThread().interrupt(); }
|
||||
if (metricsThread.isAlive()) Logger.global.logWarning("The metricsThread did not terminate correctly in time!");
|
||||
metricsThread = null;
|
||||
if (metricsThread != null) {
|
||||
metricsThread.interrupt();
|
||||
try {metricsThread.join(1000);} catch (InterruptedException ignore) { Thread.currentThread().interrupt(); }
|
||||
if (metricsThread.isAlive()) Logger.global.logWarning("The metricsThread did not terminate correctly in time!");
|
||||
metricsThread = null;
|
||||
}
|
||||
|
||||
if (periodicalSaveThread != null) periodicalSaveThread.interrupt();
|
||||
try {periodicalSaveThread.join(1000);} catch (InterruptedException ignore) { Thread.currentThread().interrupt(); }
|
||||
if (periodicalSaveThread.isAlive()) Logger.global.logWarning("The periodicalSaveThread did not terminate correctly in time!");
|
||||
periodicalSaveThread = null;
|
||||
if (periodicalSaveThread != null) {
|
||||
periodicalSaveThread.interrupt();
|
||||
try {periodicalSaveThread.join(1000);} catch (InterruptedException ignore) { Thread.currentThread().interrupt(); }
|
||||
if (periodicalSaveThread.isAlive()) Logger.global.logWarning("The periodicalSaveThread did not terminate correctly in time!");
|
||||
periodicalSaveThread = null;
|
||||
}
|
||||
|
||||
//stop services
|
||||
if (renderManager != null) renderManager.stop();
|
||||
|
Loading…
Reference in New Issue
Block a user