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:
parent
1a6cd59e8b
commit
2142b8918a
14
src/pair.cpp
14
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 ();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user