Do not add 1ms to the timeout of our poller
Can’t remember why I did this, but that must be a stupid reason. Everything must work even with a timeout of 0.
This commit is contained in:
@@ -23,7 +23,7 @@ std::chrono::milliseconds TimedEventsManager::get_timeout() const
|
||||
{
|
||||
if (this->events.empty())
|
||||
return utils::no_timeout;
|
||||
return this->events.front().get_timeout() + std::chrono::milliseconds(1);
|
||||
return this->events.front().get_timeout();
|
||||
}
|
||||
|
||||
std::size_t TimedEventsManager::execute_expired_events()
|
||||
|
||||
Reference in New Issue
Block a user