diff --git a/js/controllers/signin.js b/js/controllers/signin.js index 2513784ad..721959d25 100644 --- a/js/controllers/signin.js +++ b/js/controllers/signin.js @@ -83,7 +83,7 @@ angular.module('copay.signin').controller('SigninController', }; function installStartupHandlers(wallet) { - wallet.network.on('error', function(err) { + wallet.on('connectionError', function(err) { $scope.failure = true; }); wallet.on('ready', function() { diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index e584d19b5..c6236cf47 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -222,6 +222,9 @@ Wallet.prototype.netStart = function() { self.log('[Wallet.js.132:openError:] GOT openError'); //TODO self.emit('openError'); }); + net.on('error', function(){ + self.emit('connectionError'); // Bubble the error + }); net.on('close', function() { self.emit('close'); });