Ensure runtime event notification gets cleared on restart

This commit is contained in:
Nick O'Leary 2016-12-05 14:39:34 +00:00
parent 8d21e441a0
commit c720d78c39
2 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function handleStatus(event) {
publish("status/"+event.id,event.status,true);
}
function handleRuntimeEvent(event) {
publish("notification/"+event.id,event,event.hasOwnProperty('text'));
publish("notification/"+event.id,event,true);
}
function init(_server,runtime) {
server = _server;

View File

@ -289,6 +289,8 @@ function start(type,diff,muteLog) {
}
}
events.emit("nodes-started");
events.emit("runtime-event",{id:"runtime-state"});
if (!muteLog) {
if (diff) {
log.info(log._("nodes.flows.started-modified-"+type));