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:
parent
01a143cd5a
commit
1fd4b2b9fc
@ -429,7 +429,7 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
var completeSend = function(partId) {
|
var completeSend = function(partId) {
|
||||||
var group = inflight[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 ((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 = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user