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

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