mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +01:00
Fixed very long shutdown(?)
This commit is contained in:
parent
70429dc5a4
commit
612966734a
@ -76,8 +76,9 @@ public class AsynchronousQueue<T> {
|
|||||||
|
|
||||||
log.info("Stopping map renderer...");
|
log.info("Stopping map renderer...");
|
||||||
|
|
||||||
|
oldThread.interrupt();
|
||||||
try {
|
try {
|
||||||
oldThread.join();
|
oldThread.join(1000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
log.info("Waiting for map renderer to stop is interrupted");
|
log.info("Waiting for map renderer to stop is interrupted");
|
||||||
}
|
}
|
||||||
@ -99,10 +100,12 @@ public class AsynchronousQueue<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sleep(int time) {
|
private boolean sleep(int time) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(time);
|
Thread.sleep(time);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user