From 14f2fecdcd9732fe741c211138a4ba327816a937 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 19 Nov 2009 09:53:49 +0100 Subject: ZMQII-24: SEGFAULT when anonymous session disconnects --- src/pipe.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/pipe.cpp') 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 () -- cgit v1.2.3