fix grunt complaint

This commit is contained in:
G S Marzot 2023-07-20 12:30:59 -04:00 committed by gmarzot
parent 8e5c6db8f4
commit a06b728c8a

View File

@ -34,7 +34,7 @@ module.exports = function(RED) {
function inputlistener(msg) { function inputlistener(msg) {
if (msg != null) { if (msg != null) {
if (msg.hasOwnProperty("stop")) { if (msg.hasOwnProperty("stop")) {
this.stopped = true; node.stopped = true;
if (node.running) { if (node.running) {
node.child.kill(node.closer); node.child.kill(node.closer);
} }
@ -46,7 +46,7 @@ module.exports = function(RED) {
node.child.kill(msg.kill.toUpperCase()); node.child.kill(msg.kill.toUpperCase());
} }
else if (msg.hasOwnProperty("start")) { else if (msg.hasOwnProperty("start")) {
this.stopped = false; node.stopped = false;
if (!node.running) { if (!node.running) {
let args = ""; let args = "";
if (msg.hasOwnProperty("args") && msg.args.length > 0) { if (msg.hasOwnProperty("args") && msg.args.length > 0) {