From 209412df4cea167dee09b86be6c8d1d7fba972f1 Mon Sep 17 00:00:00 2001 From: Chris Bonser Date: Sun, 4 Dec 2022 15:50:21 -0600 Subject: [PATCH] Ensure previous waiter tokens are marked as ended before starting a new one --- addon/components/printable-pages.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addon/components/printable-pages.js b/addon/components/printable-pages.js index f4c5f95..297e3bd 100644 --- a/addon/components/printable-pages.js +++ b/addon/components/printable-pages.js @@ -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) {