[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>
This commit is contained in:
Florian Hotze 2022-12-06 13:15:47 +01:00 committed by GitHub
parent 923c0f1db2
commit a9d4244fd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,6 @@ public class OpenhabGraalJSScriptEngine
@Override
public void close() {
jsRuntimeFeatures.close();
delegate.close();
}
/**