Merge branch 'master' of github.com:ehlxr/did
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
commit
8ba6a51146
@ -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))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user