提交 f0b46e12 编写于 作者: X xueli.xue

JettyServer关闭逻辑优化,修复执行器无法通过脚本正常关闭的问题

上级 cafe9546
......@@ -44,7 +44,7 @@ public class JettyServer {
logger.info(">>>>>>>>>>>> xxl-job jetty server start success at port:{}.", port);
ExecutorRegistryThread.getInstance().start(port, ip, appName, registHelper);
server.join(); // block until thread stopped
logger.info(">>>>>>>>>>> xxl-rpc server start success, netcon={}, port={}", JettyServer.class.getName(), port);
logger.info(">>>>>>>>>>> xxl-rpc server join success, netcon={}, port={}", JettyServer.class.getName(), port);
} catch (Exception e) {
logger.error("", e);
} finally {
......@@ -59,6 +59,7 @@ public class JettyServer {
public void destroy() {
if (server != null) {
try {
server.stop();
server.destroy();
} catch (Exception e) {
logger.error("", e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册