Skip to content

Commit

Permalink
Ensure previous waiter tokens are marked as ended before starting a n…
Browse files Browse the repository at this point in the history
…ew one
  • Loading branch information
chbonser committed Dec 4, 2022
1 parent 74641d3 commit 209412d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addon/components/printable-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ export default class PrintablePagesComponent extends Component {

@task({ keepLatest: true })
*reportStartTask(currentPage) {
if (waiterToken) waiter.endAsync(waiterToken);

waiterToken = waiter.beginAsync();

if (this.args.onRenderStart) {
Expand Down

0 comments on commit 209412d

Please sign in to comment.