Skip to content

Commit f87b452

Browse files
gselzerCopilot
andauthored
Shutdown stopped server processes on default executor
If we do it on `starter` then it is vulnerable to being terminated on shutdown, preventing normal shutdown completion Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 72d560d commit f87b452

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scijava-code-lsp/src/main/java/org/scijava/code/lsp/server/ServerProcesses.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Optional<ServerProcess> running() {
264264
private void stop() {
265265
slots.remove(env, this);
266266
if (server == null) return;
267-
server.thenAcceptAsync(ServerProcess::shutdown, starter);
267+
server.thenAcceptAsync(ServerProcess::shutdown);
268268
server = null;
269269
}
270270

0 commit comments

Comments
 (0)