several improvements to p2p connections

This commit is contained in:
Mario Colque 2014-04-04 18:29:32 -03:00
commit 5b8b000c3d
3 changed files with 79 additions and 64 deletions

View file

@ -33,7 +33,8 @@ angular.module('copay.header').controller('HeaderController',
$scope.signout = function() {
$rootScope.isLogged = false;
Network.disconnect();
$location.path('signin');
Network.disconnect(function() {
$location.path('signin');
});
};
});