mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 13:21:10 +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;
|
||||
|
||||
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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user