mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Log close errors rather than pass up the stack
This commit is contained in:
		| @@ -124,9 +124,13 @@ var flowNodes = module.exports = { | ||||
|             events.emit("nodes-stopping"); | ||||
|             var promises = []; | ||||
|             for (var n in nodes) { | ||||
|                 var p = nodes[n].close(); | ||||
|                 if (p) { | ||||
|                     promises.push(p); | ||||
|                 try { | ||||
|                     var p = nodes[n].close(); | ||||
|                     if (p) { | ||||
|                         promises.push(p); | ||||
|                     } | ||||
|                 } catch(err) { | ||||
|                     nodes[n].error(err); | ||||
|                 } | ||||
|             } | ||||
|             when.settle(promises).then(function() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user