Skip to content

Commit 0f43434

Browse files
committed
Only interrupt on interruption exception.
1 parent 8d5bae3 commit 0f43434

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/LanguageServerRouter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,10 @@ private void scheduleShutdown(Future<Void> server, LanguageParameter lang, Runna
206206
try {
207207
server.get();
208208
logger.info("Language server for {} terminated gracefully", lang.getName());
209-
} catch (CancellationException | ExecutionException | InterruptedException e) {
209+
} catch (CancellationException | ExecutionException e) {
210210
logger.error("Language server for {} crashed", lang.getName(), e);
211211
// TODO Remove from the map? Attempt a restart with the same parameters?
212+
} catch (InterruptedException e) {
212213
Thread.currentThread().interrupt();
213214
}
214215
try {

0 commit comments

Comments
 (0)