]> git.basschouten.com Git - openhab-addons.git/commitdiff
[jsscripting] Fix "Error removing engine" context already closed (#13855)
authorFlorian Hotze <florianh_dev@icloud.com>
Tue, 6 Dec 2022 12:15:47 +0000 (13:15 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Dec 2022 12:15:47 +0000 (13:15 +0100)
In recent PR #13824, I added closing the context when the engine is closed, but core seems to have problems with that.

It logs: "[ERROR] [ipt.internal.ScriptEngineManagerImpl] - Error removing ScriptEngine
java.lang.IllegalStateException: The Context is already closed."

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/OpenhabGraalJSScriptEngine.java