FIX: no crash
This commit is contained in:
		
							parent
							
								
									4a9c4ef996
								
							
						
					
					
						commit
						0f75933bf0
					
				@ -12,14 +12,15 @@ function updateLightning() {
 | 
				
			|||||||
  try {
 | 
					  try {
 | 
				
			||||||
    lightning.getInfo({}, function(err, info) {
 | 
					    lightning.getInfo({}, function(err, info) {
 | 
				
			||||||
      if (err) {
 | 
					      if (err) {
 | 
				
			||||||
        console.error('lnd failure');
 | 
					        console.error('lnd failure:', err);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      lightningGetInfo = info;
 | 
					      lightningGetInfo = info;
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    lightning.listChannels({}, function(err, response) {
 | 
					    lightning.listChannels({}, function(err, response) {
 | 
				
			||||||
      if (err) {
 | 
					      if (err) {
 | 
				
			||||||
        console.error('lnd failure');
 | 
					        console.error('lnd failure:', err);
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      lightningListChannels = response;
 | 
					      lightningListChannels = response;
 | 
				
			||||||
      let channels = [];
 | 
					      let channels = [];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user