From 34b114d15d8e4bd784014189eb7204e88b06da61 Mon Sep 17 00:00:00 2001 From: Jon Dyte Date: Thu, 29 Sep 2011 09:07:03 +0200 Subject: Make sure new ROUTER socket honours POLLIN for cmd messages Signed-off-by: Jon Dyte --- src/router.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.cpp b/src/router.cpp index 05908b5..b7e19fb 100755 --- a/src/router.cpp +++ b/src/router.cpp @@ -260,7 +260,7 @@ bool zmq::router_t::xhas_in () { if (prefetched) return true; - return fq.has_in (); + return fq.has_in () || !pending_commands.empty(); } bool zmq::router_t::xhas_out () -- cgit v1.2.3