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) {
|
function installStartupHandlers(wallet) {
|
||||||
wallet.network.on('error', function(err) {
|
wallet.on('connectionError', function(err) {
|
||||||
$scope.failure = true;
|
$scope.failure = true;
|
||||||
});
|
});
|
||||||
wallet.on('ready', function() {
|
wallet.on('ready', function() {
|
||||||
|
|
|
@ -222,6 +222,9 @@ Wallet.prototype.netStart = function() {
|
||||||
self.log('[Wallet.js.132:openError:] GOT openError'); //TODO
|
self.log('[Wallet.js.132:openError:] GOT openError'); //TODO
|
||||||
self.emit('openError');
|
self.emit('openError');
|
||||||
});
|
});
|
||||||
|
net.on('error', function(){
|
||||||
|
self.emit('connectionError'); // Bubble the error
|
||||||
|
});
|
||||||
net.on('close', function() {
|
net.on('close', function() {
|
||||||
self.emit('close');
|
self.emit('close');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue