summaryrefslogtreecommitdiff
path: root/src/pair.cpp
diff options
context:
space:
mode:
authorMikko Koppanen <mkoppanen@php.net>2010-12-15 20:10:27 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-12-15 20:10:27 +0100
commit27e83cc5258e191a7d5977e202046447df7896b9 (patch)
tree57572817c9a7e135624f29cae7cbadcce490be88 /src/pair.cpp
parenta46980babe076d34347629a54e9635466e6e2a9f (diff)
Fixes assertion on pipe.cpp:237 when swap fills up.
Fixes swap::full () functionality Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
Diffstat (limited to 'src/pair.cpp')
-rw-r--r--src/pair.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pair.cpp b/src/pair.cpp
index 6442b32..ace3550 100644
--- a/src/pair.cpp
+++ b/src/pair.cpp
@@ -170,7 +170,10 @@ bool zmq::pair_t::xhas_out ()
if (!outpipe || !outpipe_alive)
return false;
- outpipe_alive = outpipe->check_write ();
+ zmq_msg_t msg;
+ zmq_msg_init (&msg);
+ outpipe_alive = outpipe->check_write (&msg);
+ zmq_msg_close (&msg);
return outpipe_alive;
}