mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #4083 from node-red/fix-join-memory
Join: ensure inflight status is cleared when in auto mode
This commit is contained in:
commit
3306cdede5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user