From 5c78692fcd447d94be1eb43338f79790f53051f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Thu, 28 Jul 2016 10:14:04 +0200 Subject: Do not add 1ms to the timeout of our poller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can’t remember why I did this, but that must be a stupid reason. Everything must work even with a timeout of 0. --- louloulibs/utils/timed_events_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3