summaryrefslogtreecommitdiff
path: root/src/pipe.cpp
diff options
context:
space:
mode:
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;