NIFI-838:

- Fixing bug when checking the state of a referencing component when attempting to disable a controller service. Only considering referencing components as RUNNING when the state is RUNNING or has active threads.
This commit is contained in:
Matt Gilman 2015-08-12 13:33:47 -04:00
parent 0a279ff538
commit 91f4dae060
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ nf.ControllerService = (function () {
var stillRunning = false;
$.each(referencingComponents, function(_, referencingComponent) {
if (referencingComponent.referenceType === 'Processor' || referencingComponent.referenceType === 'ReportingTask') {
if (referencingComponent.state !== 'STOPPED' || referencingComponent.activeThreadCount > 0) {
if (referencingComponent.state === 'RUNNING' || referencingComponent.activeThreadCount > 0) {
stillRunning = true;
}