summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-07-28 10:14:04 +0200
committerlouiz’ <louiz@louiz.org>2016-07-28 10:35:12 +0200
commit5c78692fcd447d94be1eb43338f79790f53051f6 (patch)
tree5783600c93168ba0885efef0620483f38c6359b3 /louloulibs
parent11a1c0cc99af9629302184fac2b7adf3ac48516b (diff)
downloadbiboumi-5c78692fcd447d94be1eb43338f79790f53051f6.tar.gz
biboumi-5c78692fcd447d94be1eb43338f79790f53051f6.tar.bz2
biboumi-5c78692fcd447d94be1eb43338f79790f53051f6.tar.xz
biboumi-5c78692fcd447d94be1eb43338f79790f53051f6.zip
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.
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/utils/timed_events_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/utils/timed_events_manager.cpp b/louloulibs/utils/timed_events_manager.cpp
index b90a237..67d61fe 100644
--- a/louloulibs/utils/timed_events_manager.cpp
+++ b/louloulibs/utils/timed_events_manager.cpp
@@ -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()