Ensure tabs are removed from runtime on partial deploy

This commit is contained in:
Nick O'Leary 2015-12-10 15:47:15 +00:00
parent 5bbf576dae
commit 50d0a88276
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ function stop(type,diff) {
for (var id in activeFlows) {
if (activeFlows.hasOwnProperty(id)) {
promises = promises.concat(activeFlows[id].stop(stopList));
if (!diff || diff.removed[id]) {
if (!diff || diff.removed.indexOf(id)!==-1) {
delete activeFlows[id];
}
}