update getWebThreadPool

pull/117/head
weihu 3 years ago
parent d7c17f9a2c
commit d14a3ff8f8

@ -38,9 +38,9 @@ public abstract class AbstractWebThreadPoolService implements WebThreadPoolServi
public Executor getWebThreadPool() {
if (executor == null) {
synchronized (AbstractWebThreadPoolService.class) {
if (executor == null) {
ApplicationContext applicationContext = ApplicationContextHolder.getInstance();
WebServer webServer = ((WebServerApplicationContext) applicationContext).getWebServer();
if (executor == null) {
executor = getWebThreadPoolByServer(webServer);
}
}

Loading…
Cancel
Save