Skip to content

Commit

Permalink
delete interval from intervalQueries when is empty to create interval…
Browse files Browse the repository at this point in the history
… on new subscription
  • Loading branch information
palmeidaminder authored and helfer committed Sep 29, 2016
1 parent d1fe61c commit e1799b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export class QueryScheduler {

if (this.intervalQueries[interval].length === 0) {
clearInterval(this.pollingTimers[interval]);
delete this.intervalQueries[interval];
}
}

Expand Down

0 comments on commit e1799b0

Please sign in to comment.