diff options
-rw-r--r-- | src/fq.cpp | 5 | ||||
-rw-r--r-- | src/lb.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -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 (); } |