Merge pull request #423 from CopernicaMarketingSoftware/41307

This commit is contained in:
Emiel Bruijntjes 2021-09-06 12:29:50 +02:00 committed by GitHub
commit e60280fb20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ private:
}
// 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);
@ -366,7 +366,7 @@ private:
_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);