summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-09-30 14:03:54 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-09-30 14:03:54 +0200
commit98fa2fa802773252a2c569ffea99bce1c5f9cd4c (patch)
tree9a466f066a8aee6916ff678e87cf1cea7c60f4eb
parent7881ba1bcd2c940037e54a74d6aeb8376329cde4 (diff)
fix in XREP's fair queueing mechanism
-rw-r--r--src/xrep.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xrep.cpp b/src/xrep.cpp
index b8ad735..68b9d1b 100644
--- a/src/xrep.cpp
+++ b/src/xrep.cpp
@@ -95,6 +95,8 @@ void zmq::xrep_t::terminated (reader_t *pipe_)
inpipes.erase (it);
if (terminating)
unregister_term_ack ();
+ if (current_in >= inpipes.size ())
+ current_in = 0;
return;
}
}