Join: count of 0 should not send on every msg

This commit is contained in:
Nick O'Leary
2017-07-05 14:12:28 +01:00
parent 266274135e
commit f30f80d117
2 changed files with 5 additions and 5 deletions

View File

@@ -457,7 +457,7 @@ module.exports = function(RED) {
group.msg = msg;
var tcnt = group.targetCount;
if (msg.hasOwnProperty("parts")) { tcnt = group.targetCount || msg.parts.count; }
if (group.currentCount >= tcnt || msg.hasOwnProperty('complete')) {
if ((tcnt > 0 && group.currentCount >= tcnt) || msg.hasOwnProperty('complete')) {
completeSend(partId);
}
} catch(err) {