mirror of https://github.com/node-red/node-red.git
Fixup Change node use of node.done
This commit is contained in:
parent
f62a933d1c
commit
6f91786f4d
|
@ -331,11 +331,11 @@ module.exports = function(RED) {
|
||||||
this.on('input', function(msg, send, done) {
|
this.on('input', function(msg, send, done) {
|
||||||
applyRules(msg, 0, (err,msg) => {
|
applyRules(msg, 0, (err,msg) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
node.error(err,msg);
|
done(err);
|
||||||
} else if (msg) {
|
} else if (msg) {
|
||||||
send(msg);
|
send(msg);
|
||||||
|
done();
|
||||||
}
|
}
|
||||||
done();
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue