fix old version bug
This commit is contained in:
parent
593bcd6ed0
commit
e3e091b873
2 changed files with 3 additions and 3 deletions
4
bin/ssu
4
bin/ssu
|
|
@ -22,8 +22,8 @@ wreck.get('http://localhost:7070/pid?fingerprint=' + fingerprint, opts, function
|
||||||
process.exit(2)
|
process.exit(2)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!payload.pid) {
|
if (!payload || !payload.pid) {
|
||||||
console.log('The requested lamassu-machine is not connected.')
|
console.log('The requested lamassu-machine appears to be running an old version.')
|
||||||
process.exit(3)
|
process.exit(3)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ function poll(req, res) {
|
||||||
var fingerprint = getFingerprint(req)
|
var fingerprint = getFingerprint(req)
|
||||||
var pid = req.query.pid
|
var pid = req.query.pid
|
||||||
|
|
||||||
if (pid) pids[fingerprint] = {pid: pid, ts: Date.now()}
|
pids[fingerprint] = {pid: pid, ts: Date.now()}
|
||||||
|
|
||||||
logger.debug('poll request from: %s', fingerprint);
|
logger.debug('poll request from: %s', fingerprint);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue