Skip to content

Commit

Permalink
Merge pull request #164 from MichaelChirico/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
wch authored Feb 14, 2022
2 parents 1d1b6a6 + 84caa3d commit ba70887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/callback_registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ bool CallbackRegistry::empty() const {
bool CallbackRegistry::due(const Timestamp& time, bool recursive) const {
ASSERT_MAIN_THREAD()
Guard guard(mutex);
cbSet::const_iterator it = queue.begin();
if (!this->queue.empty() && !((*it)->when > time)) {
cbSet::const_iterator cbSet_it = queue.begin();
if (!this->queue.empty() && !((*cbSet_it)->when > time)) {
return true;
}

Expand Down

0 comments on commit ba70887

Please sign in to comment.