summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/poller_base.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/poller_base.cpp b/src/poller_base.cpp
index d55692a..661b964 100644
--- a/src/poller_base.cpp
+++ b/src/poller_base.cpp
@@ -66,6 +66,10 @@ void zmq::poller_base_t::cancel_timer (i_poll_events *sink_, int id_)
uint64_t zmq::poller_base_t::execute_timers ()
{
+ // Fast track.
+ if (timers.empty ())
+ return 0;
+
// Get the current time.
uint64_t current = clock.now_ms ();