1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

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