From 463d78a3b35299ac6ef66369e89b7e99dc02c3de Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Thu, 12 Jul 2018 09:43:04 +0200 Subject: [PATCH] MOBILE-2482 core: Fix concurrent delegate handler updates --- src/classes/delegate.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/classes/delegate.ts b/src/classes/delegate.ts index 36ce33710..61fd14b76 100644 --- a/src/classes/delegate.ts +++ b/src/classes/delegate.ts @@ -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 {