Skip to content

Commit

Permalink
fix(AsapScheduler): Fix issue where canceling an asap or animationFra…
Browse files Browse the repository at this point in the history
…me action early could throw

ReactiveX#2625 ReactiveX#2594
  • Loading branch information
trxcllnt committed Jun 3, 2017
1 parent a7af560 commit 6adf281
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scheduler/AsyncAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export class AsyncAction<T> extends Action<T> {
const index = actions.indexOf(this);

this.work = null;
this.delay = null;
this.state = null;
this.pending = false;
this.scheduler = null;
Expand All @@ -149,5 +148,7 @@ export class AsyncAction<T> extends Action<T> {
if (id != null) {
this.id = this.recycleAsyncId(scheduler, id, null);
}

this.delay = null;
}
}

0 comments on commit 6adf281

Please sign in to comment.