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

Fix global leak in lib/flows/index.js

This commit is contained in:
Nick O'Leary 2021-02-19 21:47:02 +00:00
parent 5012568464
commit afb17af571
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -424,7 +424,7 @@ function stop(type,diff,muteLog) {
});
return Promise.all(promises).then(function() {
for (id in activeNodesToFlow) {
for (let id in activeNodesToFlow) {
if (activeNodesToFlow.hasOwnProperty(id)) {
if (!activeFlows[activeNodesToFlow[id]]) {
delete activeNodesToFlow[id];