Commit f0757c00 authored by Martin Sustrik's avatar Martin Sustrik

ZMQII-43: Race condition when writing to pipe

parent 6a46ca75
......@@ -78,7 +78,7 @@ bool zmq::session_t::read (::zmq_msg_t *msg_)
bool zmq::session_t::write (::zmq_msg_t *msg_)
{
if (out_pipe->write (msg_)) {
if (out_pipe && out_pipe->write (msg_)) {
zmq_msg_init (msg_);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment