Skip to content

Commit

Permalink
Merge pull request #423 from CopernicaMarketingSoftware/41307
Browse files Browse the repository at this point in the history
  • Loading branch information
EmielBruijntjes authored Sep 6, 2021
2 parents cffbd34 + b25c3f3 commit e60280f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/amqpcpp/libev.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class LibEvHandler : public TcpHandler
}

// reset the timer to trigger again later
_timer.repeat = std::min(_next, _expire) - now;
ev_timer_set(&_timer, std::min(_next, _expire) - now, 0.0);

// restart the timer
ev_timer_again(_loop, &_timer);
Expand Down Expand Up @@ -366,7 +366,7 @@ class LibEvHandler : public TcpHandler
_expire = now + _timeout * 1.5;

// find the earliest thing that expires
_timer.repeat = std::min(_next, _expire) - now;
ev_timer_set(&_timer, std::min(_next, _expire) - now, 0.0);

// restart the timer
ev_timer_again(_loop, &_timer);
Expand Down

0 comments on commit e60280f

Please sign in to comment.