mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
hangup when closing socket with no pipes attached -- fixed
This commit is contained in:
@@ -75,6 +75,11 @@ void zmq::fq_t::terminate ()
|
|||||||
{
|
{
|
||||||
terminating = true;
|
terminating = true;
|
||||||
|
|
||||||
|
if (pipes.empty ()) {
|
||||||
|
sink->terminated ();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (pipes_t::size_type i = 0; i != pipes.size (); i++)
|
for (pipes_t::size_type i = 0; i != pipes.size (); i++)
|
||||||
pipes [i]->terminate ();
|
pipes [i]->terminate ();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,6 +54,11 @@ void zmq::lb_t::terminate ()
|
|||||||
{
|
{
|
||||||
terminating = true;
|
terminating = true;
|
||||||
|
|
||||||
|
if (pipes.empty ()) {
|
||||||
|
sink->terminated ();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (pipes_t::size_type i = 0; i != pipes.size (); i++)
|
for (pipes_t::size_type i = 0; i != pipes.size (); i++)
|
||||||
pipes [i]->terminate ();
|
pipes [i]->terminate ();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user