From 98fa2fa802773252a2c569ffea99bce1c5f9cd4c Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 30 Sep 2010 14:03:54 +0200 Subject: fix in XREP's fair queueing mechanism --- src/xrep.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xrep.cpp') 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; } } -- cgit v1.2.3