config deploy to github
continuous-integration/drone/push Build is passing Details

master
ehlxr 2021-01-23 19:46:00 +08:00
parent cef3da052c
commit 0d2901bdbe
1 changed files with 5 additions and 2 deletions

View File

@ -41,8 +41,11 @@ public class ServerStarter {
sdkServer.init();
sdkServer.start();
// 并行 shutdown server
Runtime.getRuntime().addShutdownHook(new Thread(() ->
Arrays.stream(new Server[]{httpServer, sdkServer}).parallel().forEach(Server::shutdown)));
Arrays.stream(new Server[]{httpServer, sdkServer})
// 并行 shutdown server
.parallel()
.forEach(Server::shutdown))
);
}
}