0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-31 01:43:02 +08:00

issue 92 -- Assertion failed: inpipe && outpipe (pair.cpp:86) -- fixed

This commit is contained in:
Martin Sustrik 2010-10-01 18:46:32 +02:00
parent 1a6cd59e8b
commit 2142b8918a

View File

@ -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 ();
}