]> git.basschouten.com Git - openhab-addons.git/commit
[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)
commita9d4244fd81e8016c78eee5a7676bfd0c60b75a1
treef0d824a369fe84192e846d41808762aa8dc3c71a
parent923c0f1db2a2921701753b47db764fa93476919a
[jsscripting] Fix "Error removing engine" context already closed (#13855)

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