Add retry connection to peerjs server on login

This commit is contained in:
Yemel Jardi 2014-06-06 12:30:50 -03:00
commit 9b5e155192
4 changed files with 38 additions and 5 deletions

View file

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