mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-31 01:43:02 +08:00
hangup when closing socket with no pipes attached -- fixed
This commit is contained in:
parent
090e460d6f
commit
47c064f2ea
@ -75,6 +75,11 @@ void zmq::fq_t::terminate ()
|
||||
{
|
||||
terminating = true;
|
||||
|
||||
if (pipes.empty ()) {
|
||||
sink->terminated ();
|
||||
return;
|
||||
}
|
||||
|
||||
for (pipes_t::size_type i = 0; i != pipes.size (); i++)
|
||||
pipes [i]->terminate ();
|
||||
}
|
||||
|
@ -54,6 +54,11 @@ void zmq::lb_t::terminate ()
|
||||
{
|
||||
terminating = true;
|
||||
|
||||
if (pipes.empty ()) {
|
||||
sink->terminated ();
|
||||
return;
|
||||
}
|
||||
|
||||
for (pipes_t::size_type i = 0; i != pipes.size (); i++)
|
||||
pipes [i]->terminate ();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user