use of lucee.loader.engine.CFMLEngineWrapper in project Lucee by lucee.
the class CFMLEngineImpl method isRunning.
public boolean isRunning() {
try {
CFMLEngine other = CFMLEngineFactory.getInstance();
// FUTURE patch, do better impl when changing loader
if (other != this && controlerState.active() && !(other instanceof CFMLEngineWrapper)) {
SystemOut.printDate("CFMLEngine is still set to true but no longer valid, " + lucee.runtime.config.Constants.NAME + " disable this CFMLEngine.");
controlerState.setActive(false);
reset();
return false;
}
} catch (Throwable t) {
ExceptionUtil.rethrowIfNecessary(t);
}
return controlerState.active();
}
Aggregations