Fix: Bring back to life the error message for wallet already in use

This commit is contained in:
Yemel Jardi 2014-05-22 20:02:12 -07:00
parent 406db01dd2
commit ddffc9810c
2 changed files with 4 additions and 1 deletions

View File

@ -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() {

View File

@ -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');
});