shutdown generator threadpool before stopping server
This commit is contained in:
parent
ff86191151
commit
93c4e3b23b
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user