summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ()