Skip to content

Commit

Permalink
Update NotificationQueue.ts
Browse files Browse the repository at this point in the history
The line `worker(counter++)` passed the previous state of the counter, I mean befor increment. So it is the same like `worker(0); couner = counter + 1`
  • Loading branch information
Lao-Ax committed Dec 6, 2024
1 parent 5c9dba6 commit d75d42b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class NotificationClass {
return true;
}

return this.worker(counter++);
return this.worker(++counter);
}

getNextNotification(): Promise<INotification | null> {
Expand Down

0 comments on commit d75d42b

Please sign in to comment.