Script Engines now removed from manager when closed (#2706)
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>pull/2708/head
parent
f79d17f864
commit
59bc10a2af
|
@ -198,7 +198,7 @@ public class ScriptEngineManagerImpl implements ScriptEngineManager {
|
|||
|
||||
@Override
|
||||
public void removeEngine(String engineIdentifier) {
|
||||
ScriptEngineContainer container = loadedScriptEngineInstances.get(engineIdentifier);
|
||||
ScriptEngineContainer container = loadedScriptEngineInstances.remove(engineIdentifier);
|
||||
if (container != null) {
|
||||
ScriptEngine scriptEngine = container.getScriptEngine();
|
||||
if (scriptEngine instanceof Invocable) {
|
||||
|
|
Loading…
Reference in New Issue