Skip to content

Commit

Permalink
fix(delay): fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
ubnt-michals committed Apr 29, 2018
1 parent 60e7521 commit 0ced8f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/internal/operators/delay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class DelaySubscriber<T> extends Subscriber<T> {
const delay = Math.max(0, queue[0].time - scheduler.now());
this.schedule(state, delay);
} else {
source.remove(this);
source.active = false;
}
}
Expand Down

0 comments on commit 0ced8f3

Please sign in to comment.