mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-02 19:35:29 +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 ()
|
void zmq::pair_t::process_term ()
|
||||||
{
|
{
|
||||||
zmq_assert (inpipe && outpipe);
|
|
||||||
|
|
||||||
terminating = true;
|
terminating = true;
|
||||||
|
|
||||||
register_term_acks (2);
|
if (inpipe) {
|
||||||
inpipe->terminate ();
|
register_term_acks (1);
|
||||||
outpipe->terminate ();
|
inpipe->terminate ();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (outpipe) {
|
||||||
|
register_term_acks (1);
|
||||||
|
outpipe->terminate ();
|
||||||
|
}
|
||||||
|
|
||||||
socket_base_t::process_term ();
|
socket_base_t::process_term ();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user