Skip to content

Commit

Permalink
fix: order of async operations
Browse files Browse the repository at this point in the history
  • Loading branch information
mshatikhin committed Dec 13, 2024
1 parent d3c8edd commit be58196
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-ui/lib/taskWithDelayAndMinimalDuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export class TaskWithDelayAndMinimalDuration {

this.isTaskActive = true;

if (this.timeoutBeforeTaskStop) {
return;
}

if (this.timeoutBeforeTaskStart) {
this.clearTimeoutBeforeTaskStart();
}
Expand Down

0 comments on commit be58196

Please sign in to comment.