From 6d4ffd90dbda943e5d1215fb56d06eeac1b4420f Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 7 Sep 2010 15:49:54 +0200 Subject: Bug in fq_t and lb_t (when used via ZMQ_EVENTS option) fixed --- src/lb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lb.cpp') diff --git a/src/lb.cpp b/src/lb.cpp index 53f8f58..7a28d47 100644 --- a/src/lb.cpp +++ b/src/lb.cpp @@ -135,10 +135,10 @@ bool zmq::lb_t::has_out () if (pipes [current]->check_write ()) return true; + // Deactivate the pipe. active--; - if (current < active) - pipes.swap (current, active); - else + pipes.swap (current, active); + if (current == active) current = 0; } -- cgit v1.2.3