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:
1 parent
11a1c0cc99
commit
5c78692fcd
1 file changed
+1
-1
@@ -23,7 +23,7 @@ std::chrono::milliseconds TimedEventsManager::get_timeout() const
|
|||||||
{
|
{
|
||||||
if (this->events.empty())
|
if (this->events.empty())
|
||||||
return utils::no_timeout;
|
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()
|
std::size_t TimedEventsManager::execute_expired_events()
|
||||||
|
|||||||
Reference in new issue
Block a user