Skip to content

Commit eb91612

Browse files
author
builduser
committed
Merged branch idea251.release into idea251.x
2 parents fbfb37e + 09f4db2 commit eb91612

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scala/compiler-integration/src/org/jetbrains/plugins/scala/compiler/CompileServerLauncher.scala

+6-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ object CompileServerLauncher {
7777
}
7878
}
7979

80-
ScalaShutDownTracker.registerShutdownTask(() => {
81-
LOG.info("Shutdown event triggered, stopping server")
82-
stopServerAndWaitFor(Duration.Zero)
83-
})
80+
executeOnPooledThread {
81+
ScalaShutDownTracker.registerShutdownTask(() => {
82+
LOG.info("Shutdown event triggered, stopping server")
83+
stopServerAndWaitFor(Duration.Zero)
84+
})
85+
}
8486

8587
private def isUnitTestMode: Boolean =
8688
ApplicationManager.getApplication.isUnitTestMode

0 commit comments

Comments
 (0)