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

join node - check existance before clearing timeout

This commit is contained in:
Dave Conway-Jones 2020-02-24 21:31:01 +00:00
parent 01a143cd5a
commit 1fd4b2b9fc
No known key found for this signature in database
GPG Key ID: 302A6725C594817F

View File

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