0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-15 02:07:59 +08:00

ZMQII-24: SEGFAULT when anonymous session disconnects

This commit is contained in:
Martin Sustrik 2009-11-19 09:53:49 +01:00
parent c2e0661b0a
commit 14f2fecdcd

View File

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