summaryrefslogtreecommitdiff
path: root/src/pipe.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-05-23 20:30:01 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-05-23 20:30:01 +0200
commit0f6f7276e32c01ccfe86fb76741a52ac6ffc87af (patch)
tree3f2cec589f6243742da7e79028633d35f8b362db /src/pipe.cpp
parentacf0b0e515515e51ad32ba7a2d147ce703579478 (diff)
Move the pipe termination code to socket_base_t
So far, the pipe termination code was spread among socket type classes, fair queuer, load balancer, etc. This patch moves all the associated logic to a single place. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/pipe.cpp')
-rw-r--r--src/pipe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipe.cpp b/src/pipe.cpp
index fb03042..3d0c0a6 100644
--- a/src/pipe.cpp
+++ b/src/pipe.cpp
@@ -108,7 +108,7 @@ bool zmq::pipe_t::check_read ()
// If pipe_term was already received but wasn't processed because
// of pending messages, we can ack it now.
- if (terminating)
+ if (term_recvd)
send_pipe_term_ack (peer);
return false;
@@ -133,7 +133,7 @@ bool zmq::pipe_t::read (msg_t *msg_)
// If pipe_term was already received but wasn't processed because
// of pending messages, we can ack it now.
- if (terminating)
+ if (term_recvd)
send_pipe_term_ack (peer);
return false;