From 4bba965d98bee4c56d394add93e67cd51da220d8 Mon Sep 17 00:00:00 2001 From: Rik van der Heijden Date: Fri, 1 May 2015 20:57:40 +0200 Subject: [PATCH] Problem: zmq_proxy_steerable didnt act on PAUSE/RESUME (fixes issue #88) --- src/proxy.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/proxy.cpp b/src/proxy.cpp index 08411a6f..59a277fd 100644 --- a/src/proxy.cpp +++ b/src/proxy.cpp @@ -130,7 +130,8 @@ int zmq::proxy ( } } // Process a request - if (items [0].revents & ZMQ_POLLIN + if (state == active + && items [0].revents & ZMQ_POLLIN && items [1].revents & ZMQ_POLLOUT) { while (true) { rc = frontend_->recv (&msg, 0); @@ -163,7 +164,8 @@ int zmq::proxy ( } } // Process a reply - if (items [1].revents & ZMQ_POLLIN + if (state == active + && items [1].revents & ZMQ_POLLIN && items [0].revents & ZMQ_POLLOUT) { while (true) { rc = backend_->recv (&msg, 0);