Trying to improve the 'cleanup' of classpath listeners

This commit is contained in:
Kris De Volder
2018-03-20 17:23:35 -07:00
parent f737f06228
commit 7482c26ccb
5 changed files with 26 additions and 10 deletions

View File

@@ -76,7 +76,7 @@ public class JdtLsProjectCache implements JavaProjectFinder, ProjectObserver {
}))
);
this.server.onShutdown(() ->
disposable.thenAccept(Disposable::dispose)
disposable.thenAccept(Disposable::dispose).join()
);
}