fix reconnect to insight

This commit is contained in:
Matias Alejo Garcia 2014-09-09 20:55:51 -03:00
commit 45fd46e3bc
5 changed files with 77 additions and 53 deletions

View file

@ -83,14 +83,15 @@ angular.module('copayApp.services')
});
});
w.on('networkReconnected', function() {
w.on('insightReconnected', function() {
$rootScope.reconnecting = false;
root.updateAddressList();
root.updateBalance(function() {
$rootScope.$digest();
});
});
w.on('networkError', function() {
w.on('insightError', function() {
$rootScope.reconnecting = true;
$rootScope.$digest();
});