From 2c62b6a32a5f45e8e4223d829e2f7b53c49397a0 Mon Sep 17 00:00:00 2001 From: JiaLiPassion Date: Sun, 4 Nov 2018 17:57:11 +0900 Subject: [PATCH] fix(core): fix interval will still run after cancelled error --- lib/zone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zone.ts b/lib/zone.ts index 4de4e077d..d5ad209ef 100644 --- a/lib/zone.ts +++ b/lib/zone.ts @@ -796,7 +796,7 @@ const Zone: ZoneType = (function(global: any) { // will run in notScheduled(canceled) state, we should not try to // run such kind of task but just return - if (task.state === notScheduled && task.type === eventTask) { + if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) { return; }