Skip to content

Commit

Permalink
JettyServer关闭逻辑优化,修复执行器无法通过脚本正常关闭的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xueli.xue committed May 7, 2017
1 parent cafe954 commit f0b46e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void run() {
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 {
Expand All @@ -59,6 +59,7 @@ public void run() {
public void destroy() {
if (server != null) {
try {
server.stop();
server.destroy();
} catch (Exception e) {
logger.error("", e);
Expand Down

0 comments on commit f0b46e1

Please sign in to comment.