diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-09-30 14:03:54 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-09-30 14:03:54 +0200 |
commit | 98fa2fa802773252a2c569ffea99bce1c5f9cd4c (patch) | |
tree | 9a466f066a8aee6916ff678e87cf1cea7c60f4eb /src | |
parent | 7881ba1bcd2c940037e54a74d6aeb8376329cde4 (diff) |
fix in XREP's fair queueing mechanism
Diffstat (limited to 'src')
-rw-r--r-- | src/xrep.cpp | 2 |
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; } } |