Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
[maintenance] Fix race in bspcli
Browse files Browse the repository at this point in the history
Merge-request: BAZEL-MR-524
Merged-by: Tomasz Pasternak <[email protected]>
  • Loading branch information
Tomasz Pasternak authored and Space Team committed Sep 14, 2023
1 parent eaa5161 commit c03090d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bspcli/src/java/org/jetbrains/bsp/cli/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,16 @@ fun main(args0: Array<String>) {
println(buildInitializeResponse)
proxy.onBuildInitialized()
proxy.workspaceBuildTargets().get().let { println(it) }

clientExecutor.shutdown()
serverExecutor.shutdown()

clientIn.close()
serverIn.close()

clientAliveFuture.get()
serverAlveFuture.get()

clientExecutor.shutdown()
serverExecutor.shutdown()

args.metricsFile?.let {
it.writeText(metricsLogger.dump())
println("Metrics dumped to '${it.absolute()}'")
Expand Down

0 comments on commit c03090d

Please sign in to comment.