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

Join: ensure inflight status is cleared when in auto mode

Fixes #4080
This commit is contained in:
Nick O'Leary 2023-03-02 14:59:54 +00:00
parent 910f6134f6
commit 9e6d501009
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -478,7 +478,7 @@ module.exports = function(RED) {
var completeSend = function(partId) { var completeSend = function(partId) {
var group = inflight[partId]; var group = inflight[partId];
if (group.timeout) { clearTimeout(group.timeout); } if (group.timeout) { clearTimeout(group.timeout); }
if ((node.accumulate !== true) || group.msg.hasOwnProperty("complete")) { delete inflight[partId]; } if (node.mode === 'auto' || node.accumulate !== true || group.msg.hasOwnProperty("complete")) { delete inflight[partId]; }
if (group.type === 'array' && group.arrayLen > 1) { if (group.type === 'array' && group.arrayLen > 1) {
var newArray = []; var newArray = [];
group.payload.forEach(function(n) { group.payload.forEach(function(n) {