内嵌服务销毁逻辑优化;

This commit is contained in:
xueli.xue 2020-11-19 20:32:08 +08:00
parent 8712048db3
commit d94e07f376
1 changed files with 6 additions and 4 deletions

View File

@ -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);
}
}
}