mirror of https://github.com/BTCPrivate/copay.git
Fix: Bring back to life the error message for wallet already in use
This commit is contained in:
parent
406db01dd2
commit
ddffc9810c
|
@ -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() {
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue