Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix(core): fix interval will still run after cancelled error (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion authored and mhevery committed Jan 8, 2019
1 parent afa1363 commit eb72ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit eb72ff4

Please sign in to comment.