diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-11-19 09:53:49 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-11-19 09:53:49 +0100 |
commit | 14f2fecdcd9732fe741c211138a4ba327816a937 (patch) | |
tree | 63fe9abbaf749ecb9ecddfb8734cfc1849a43887 | |
parent | c2e0661b0afb2f50f47e0275fa6603947f26d240 (diff) |
ZMQII-24: SEGFAULT when anonymous session disconnects
-rw-r--r-- | src/pipe.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pipe.cpp b/src/pipe.cpp index e444520..0e15dce 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -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 () |