summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dyte <jon@totient.co.uk>2011-09-29 09:07:03 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-09-29 09:07:03 +0200
commit34b114d15d8e4bd784014189eb7204e88b06da61 (patch)
tree67d5826424fe40f1b09b0a1feb119cc8cf73a09f
parent8485a5e5a4cdcb5cec800279f874c8579d246940 (diff)
Make sure new ROUTER socket honours POLLIN for cmd messages
Signed-off-by: Jon Dyte <jon@totient.co.uk>
-rwxr-xr-xsrc/router.cpp2
1 files changed, 1 insertions, 1 deletions
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 ()