Commit 14f2fecd authored by Martin Sustrik's avatar Martin Sustrik

ZMQII-24: SEGFAULT when anonymous session disconnects

parent c2e0661b
......@@ -81,7 +81,11 @@ void zmq::reader_t::term ()
void zmq::reader_t::process_revive ()
{
endpoint->revive (this);
// Beacuse of command throttling mechanism, incoming termination request
// may not have been processed before subsequent send.
// In that case endpoint is NULL.
if (endpoint)
endpoint->revive (this);
}
void zmq::reader_t::process_pipe_term_ack ()
......
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