isolated unsubscribe function
This commit is contained in:
parent
1c09f60066
commit
228e7ae843
1 changed files with 27 additions and 27 deletions
|
|
@ -77,7 +77,7 @@ angular.module('copayApp.services')
|
||||||
root.walletClients[credentials.walletId] = client;
|
root.walletClients[credentials.walletId] = client;
|
||||||
|
|
||||||
if (client.incorrectDerivation) {
|
if (client.incorrectDerivation) {
|
||||||
storageService.clearLastAddress(credentials.walletId,function() {});
|
storageService.clearLastAddress(credentials.walletId, function() {});
|
||||||
}
|
}
|
||||||
|
|
||||||
client.removeAllListeners();
|
client.removeAllListeners();
|
||||||
|
|
@ -356,6 +356,7 @@ angular.module('copayApp.services')
|
||||||
pushNotificationsService.unsubscribe(root.getClient(walletId), function(err) {
|
pushNotificationsService.unsubscribe(root.getClient(walletId), function(err) {
|
||||||
if (err) $log.warn('Unsubscription error: ' + err.message);
|
if (err) $log.warn('Unsubscription error: ' + err.message);
|
||||||
else $log.debug('Unsubscribed from push notifications service');
|
else $log.debug('Unsubscribed from push notifications service');
|
||||||
|
});
|
||||||
|
|
||||||
$log.debug('Deleting Wallet:', fc.credentials.walletName);
|
$log.debug('Deleting Wallet:', fc.credentials.walletName);
|
||||||
|
|
||||||
|
|
@ -388,7 +389,6 @@ angular.module('copayApp.services')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
root.setMetaData = function(walletClient, addressBook, historyCache, cb) {
|
root.setMetaData = function(walletClient, addressBook, historyCache, cb) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue