mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-06 07:46:08 +00:00
Headless generation
This commit is contained in:
@@ -95,4 +95,22 @@ public class MultiBurst {
|
||||
public void shutdown() {
|
||||
service.shutdown();
|
||||
}
|
||||
|
||||
public void shutdownAndAwait() {
|
||||
service.shutdown();
|
||||
|
||||
try
|
||||
{
|
||||
while(!service.awaitTermination(10, TimeUnit.SECONDS))
|
||||
{
|
||||
Iris.info("Still waiting to shutdown burster...");
|
||||
}
|
||||
}
|
||||
|
||||
catch(Throwable e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
Iris.reportError(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user