Skip to content

Commit

Permalink
fix(scan): change the condition members' precedence (#97)
Browse files Browse the repository at this point in the history
fixes #96
  • Loading branch information
derevnjuk authored May 20, 2022
1 parent 336f132 commit 31f524b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scan/src/Scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class Scan {
let status: ScanStatus | undefined;
for await ({ status } of this.status()) {
const preventFurtherPolling =
this.done || (await predicate()) || timeoutPassed;
(await predicate()) || this.done || timeoutPassed;

if (preventFurtherPolling) {
break;
Expand Down

0 comments on commit 31f524b

Please sign in to comment.