Add retry connection to peerjs server on login
This commit is contained in:
parent
45ffa94bbe
commit
9b5e155192
4 changed files with 38 additions and 5 deletions
|
|
@ -25,6 +25,10 @@ angular.module('copayApp.controllers').controller('ImportController',
|
|||
var message = "Looks like you are already connected to this wallet, please logout from it and try importing it again.";
|
||||
$rootScope.$flashMessage = { message: message, type: 'error'};
|
||||
});
|
||||
$rootScope.wallet.on('serverError', function() {
|
||||
$rootScope.$flashMessage = { message: 'The PeerJS server is not responding, please try again', type: 'error'};
|
||||
controllerUtils.onErrorDigest();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue