shutdown generator threadpool before stopping server

This commit is contained in:
dags- 2020-01-24 15:13:39 +00:00
parent ff86191151
commit 93c4e3b23b

View File

@ -106,4 +106,12 @@ public class ThreadPool {
return instance;
}
}
public static void shutdownCurrent() {
synchronized (lock) {
instance.shutdown();
// replace with the common pool
instance = new ThreadPool();
}
}
}