mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
clean up status on close for several core nodes.
This commit is contained in:
parent
85b1c1fe97
commit
3a8820397b
@ -222,6 +222,7 @@ module.exports = function(RED) {
|
||||
while (node.outstandingIntervals.length > 0) {
|
||||
clearInterval(node.outstandingIntervals.pop())
|
||||
}
|
||||
this.status({});
|
||||
})
|
||||
} catch(err) {
|
||||
// eg SyntaxError - which v8 doesn't include line number information
|
||||
|
@ -205,6 +205,10 @@ module.exports = function(RED) {
|
||||
}
|
||||
req.end();
|
||||
});
|
||||
|
||||
this.on("close",function() {
|
||||
node.status({});
|
||||
});
|
||||
}
|
||||
|
||||
RED.nodes.registerType("http request",HTTPRequest,{
|
||||
|
@ -205,11 +205,10 @@ module.exports = function(RED) {
|
||||
} else {
|
||||
this.error(RED._("websocket.errors.missing-conf"));
|
||||
}
|
||||
|
||||
this.on('close', function() {
|
||||
node.serverConfig.removeInputNode(node);
|
||||
node.status({});
|
||||
});
|
||||
|
||||
}
|
||||
RED.nodes.registerType("websocket in",WebSocketInNode);
|
||||
|
||||
@ -252,6 +251,9 @@ module.exports = function(RED) {
|
||||
}
|
||||
}
|
||||
});
|
||||
this.on('close', function() {
|
||||
node.status({});
|
||||
});
|
||||
}
|
||||
RED.nodes.registerType("websocket out",WebSocketOutNode);
|
||||
}
|
||||
|
@ -91,6 +91,9 @@ module.exports = function(RED) {
|
||||
}
|
||||
}
|
||||
});
|
||||
this.on('close', function() {
|
||||
node.status({});
|
||||
});
|
||||
}
|
||||
RED.nodes.registerType("file",FileNode);
|
||||
|
||||
@ -127,6 +130,9 @@ module.exports = function(RED) {
|
||||
});
|
||||
}
|
||||
});
|
||||
this.on('close', function() {
|
||||
node.status({});
|
||||
});
|
||||
}
|
||||
RED.nodes.registerType("file in",FileInNode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user