Skip to content

Commit

Permalink
Flip the order of operations for resetting the callback flag and call…
Browse files Browse the repository at this point in the history
…ing the actual callback. This allows for rearming the callback from the callback itself. (#510)
  • Loading branch information
bakerstu authored Jan 29, 2021
1 parent e24c7a5 commit 6e0afdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/LimitTimer.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ private:
++bucket_;
if (needUpdate_)
{
callback_();
needUpdate_ = false;
callback_();
}
if (bucket_ >= bucketMax_)
{
Expand Down

0 comments on commit 6e0afdc

Please sign in to comment.