内嵌服务销毁逻辑优化;

master
xueli.xue 4 years ago
parent 8712048db3
commit d94e07f376
  1. 10
      xxl-job-core/src/main/java/com/xxl/job/core/executor/XxlJobExecutor.java

@ -159,10 +159,12 @@ public class XxlJobExecutor {
private void stopEmbedServer() {
// stop provider factory
try {
embedServer.stop();
} catch (Exception e) {
logger.error(e.getMessage(), e);
if (embedServer != null) {
try {
embedServer.stop();
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
}
}

Loading…
Cancel
Save