stf
stf copied to clipboard
question about agent relaunched
Hi, I wonder why agent relaunch call function openService but not openAgent? Reference code locate at /lib/units/device/plugins/service.js#L245.
function prepareForAgentDeath(conn) {
function endListener() {
var startTime = Date.now()
log.important('Agent connection ended, attempting to relaunch')
openService().then()
//...
}
}