rm disconnect message, rename disconnect fn

This commit is contained in:
Matias Alejo Garcia 2014-08-28 18:58:43 -03:00
commit 6aa959dcf5
4 changed files with 16 additions and 32 deletions

View file

@ -22,7 +22,7 @@ angular.module('copayApp.services')
root.logout = function() {
if ($rootScope.wallet)
$rootScope.wallet.disconnect();
$rootScope.wallet.close();
Socket.removeAllListeners();
@ -179,9 +179,6 @@ angular.module('copayApp.services')
}
$rootScope.$digest();
});
w.on('disconnect', function(peerID) {
$rootScope.$digest();
});
w.on('close', root.onErrorDigest);
w.on('locked', root.onErrorDigest.bind(this));
w.netStart();