summaryrefslogtreecommitdiff
path: root/src/pipe.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-08-07 09:52:34 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-08-25 15:39:20 +0200
commit3e97c0fef49e511dcae400e134876581cdae43f3 (patch)
tree700938b97f07abd668d394f177f594a0d6ea1482 /src/pipe.cpp
parentf77edfce26bf50ab6eae6550d33f345c9785acca (diff)
REQ socket implementation is layered on top of XREQ
Diffstat (limited to 'src/pipe.cpp')
-rw-r--r--src/pipe.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pipe.cpp b/src/pipe.cpp
index 14fc753..5780635 100644
--- a/src/pipe.cpp
+++ b/src/pipe.cpp
@@ -269,9 +269,6 @@ void zmq::writer_t::terminate ()
if (terminating)
return;
- // Rollback any unfinished messages.
- rollback ();
-
if (msg_store == NULL || (msg_store->empty () && !extra_msg_flag))
write_delimiter ();
else
@@ -280,6 +277,9 @@ void zmq::writer_t::terminate ()
void zmq::writer_t::write_delimiter ()
{
+ // Rollback any unfinished messages.
+ rollback ();
+
// Push delimiter into the pipe.
// Trick the compiler to belive that the tag is a valid pointer.
zmq_msg_t msg;