提交 5d7fc7b2 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 1244703c
...@@ -264,14 +264,12 @@ public class TcpServer implements Service { ...@@ -264,14 +264,12 @@ public class TcpServer implements Service {
} }
if (shutdownMode == SHUTDOWN_NORMAL) { if (shutdownMode == SHUTDOWN_NORMAL) {
server.stopManagementDb(); server.stopManagementDb();
synchronized (TcpServer.class) { server.stop = true;
server.stop = true; try {
try { Socket s = NetUtils.createLoopbackSocket(port, false);
Socket s = NetUtils.createLoopbackSocket(port, false); s.close();
s.close(); } catch (Exception e) {
} catch (Exception e) { // try to connect - so that accept returns
// try to connect - so that accept returns
}
} }
} else if (shutdownMode == SHUTDOWN_FORCE) { } else if (shutdownMode == SHUTDOWN_FORCE) {
server.stop(); server.stop();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论