From 2142b8918a0cea79c79c8ed8ce5652148abe4a39 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 1 Oct 2010 18:46:32 +0200 Subject: issue 92 -- Assertion failed: inpipe && outpipe (pair.cpp:86) -- fixed --- src/pair.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/pair.cpp') diff --git a/src/pair.cpp b/src/pair.cpp index f5df59f..89f949d 100644 --- a/src/pair.cpp +++ b/src/pair.cpp @@ -84,13 +84,17 @@ void zmq::pair_t::terminated (class writer_t *pipe_) void zmq::pair_t::process_term () { - zmq_assert (inpipe && outpipe); - terminating = true; - register_term_acks (2); - inpipe->terminate (); - outpipe->terminate (); + if (inpipe) { + register_term_acks (1); + inpipe->terminate (); + } + + if (outpipe) { + register_term_acks (1); + outpipe->terminate (); + } socket_base_t::process_term (); } -- cgit v1.2.3