MOBILE-2482 core: Fix concurrent delegate handler updates

main
Albert Gasset 2018-07-12 09:43:04 +02:00
parent 814843a1e6
commit 463d78a3b3
1 changed files with 1 additions and 2 deletions

View File

@ -252,9 +252,8 @@ export class CoreDelegate {
this.updatePromises[siteId][handler.name] = promise.catch(() => {
return false;
}).then((enabled: boolean) => {
// Verify that this call is the last one that was started.
// Check that site hasn't changed since the check started.
if (this.isLastUpdateCall(time) && this.sitesProvider.getCurrentSiteId() === siteId) {
if (this.sitesProvider.getCurrentSiteId() === siteId) {
if (enabled) {
this.enabledHandlers[handler[this.handlerNameProperty]] = handler;
} else {