isolated unsubscribe function

This commit is contained in:
Javier 2016-05-29 21:20:40 -03:00
commit 228e7ae843

View file

@ -77,7 +77,7 @@ angular.module('copayApp.services')
root.walletClients[credentials.walletId] = client;
if (client.incorrectDerivation) {
storageService.clearLastAddress(credentials.walletId,function() {});
storageService.clearLastAddress(credentials.walletId, function() {});
}
client.removeAllListeners();
@ -356,6 +356,7 @@ angular.module('copayApp.services')
pushNotificationsService.unsubscribe(root.getClient(walletId), function(err) {
if (err) $log.warn('Unsubscription error: ' + err.message);
else $log.debug('Unsubscribed from push notifications service');
});
$log.debug('Deleting Wallet:', fc.credentials.walletName);
@ -388,7 +389,6 @@ angular.module('copayApp.services')
});
});
});
});
};
root.setMetaData = function(walletClient, addressBook, historyCache, cb) {