rm disconnect message, rename disconnect fn
This commit is contained in:
parent
2809a145e2
commit
6aa959dcf5
4 changed files with 16 additions and 32 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue