Bug fixed in pipe termination

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik 2011-06-20 08:21:00 +02:00
parent 7572fee979
commit c80908c469

View File

@ -184,7 +184,7 @@ void zmq::pipe_t::flush ()
if (state == terminating)
return;
if (!outpipe->flush ())
if (outpipe && !outpipe->flush ())
send_activate_read (peer);
}