Skip to content

Commit

Permalink
Fixed RD-10460: LocalInferrerService is not stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaidioz committed Jan 17, 2024
1 parent 121d7e9 commit f485b13
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ class Rql2TruffleCompilerService(maybeClassLoader: Option[ClassLoader] = None)(
val inferrer = InferrerServiceProvider(maybeClassLoader)

// Initialize compiler context
new CompilerContext(language, user, inferrer, sourceContext, maybeClassLoader)
try {
new CompilerContext(language, user, inferrer, sourceContext, maybeClassLoader)
} catch {
case NonFatal(ex) =>
inferrer.stop()
throw ex
}
}

private def getProgramContext(user: AuthenticatedUser, environment: ProgramEnvironment): ProgramContext = {
Expand Down

0 comments on commit f485b13

Please sign in to comment.