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:
louiz’
2016-07-28 10:35:12 +02:00
parent 11a1c0cc99
commit 5c78692fcd
+1 -1
View File
@@ -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()