0
0
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:
Martin Sustrik 2010-09-01 07:35:15 +02:00
parent 090e460d6f
commit 47c064f2ea
2 changed files with 10 additions and 0 deletions

View File

@ -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 ();
}

View File

@ -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 ();
}