FIX: no crash

This commit is contained in:
Overtorment 2019-01-24 20:14:27 +00:00
parent 4a9c4ef996
commit 0f75933bf0

View File

@ -12,14 +12,15 @@ function updateLightning() {
try {
lightning.getInfo({}, function(err, info) {
if (err) {
console.error('lnd failure');
console.error('lnd failure:', err);
}
lightningGetInfo = info;
});
lightning.listChannels({}, function(err, response) {
if (err) {
console.error('lnd failure');
console.error('lnd failure:', err);
return;
}
lightningListChannels = response;
let channels = [];