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
1 changed files with 1 additions and 1 deletions

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];