mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	| @@ -388,14 +388,14 @@ function stop(type,diff,muteLog) { | ||||
|         if (activeFlows.hasOwnProperty(id)) { | ||||
|             var flowStateChanged = diff && (diff.added.indexOf(id) !== -1 || diff.removed.indexOf(id) !== -1); | ||||
|             log.debug("red/nodes/flows.stop : stopping flow : "+id); | ||||
|             promises = promises.concat(activeFlows[id].stop(flowStateChanged?null:stopList,removedList)); | ||||
|             promises.push(activeFlows[id].stop(flowStateChanged?null:stopList,removedList)); | ||||
|             if (type === "full" || flowStateChanged || diff.removed.indexOf(id)!==-1) { | ||||
|                 delete activeFlows[id]; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     return Promise.resolve(promises).then(function() { | ||||
|     return Promise.all(promises).then(function() { | ||||
|         for (id in activeNodesToFlow) { | ||||
|             if (activeNodesToFlow.hasOwnProperty(id)) { | ||||
|                 if (!activeFlows[activeNodesToFlow[id]]) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user