[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:
parent
923c0f1db2
commit
a9d4244fd8
@ -237,7 +237,6 @@ public class OpenhabGraalJSScriptEngine
|
|||||||
@Override
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
jsRuntimeFeatures.close();
|
jsRuntimeFeatures.close();
|
||||||
delegate.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user