From c80908c469b1fbd3d1b639ea39d86e4e4311ae57 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 20 Jun 2011 08:21:00 +0200 Subject: Bug fixed in pipe termination Signed-off-by: Martin Sustrik --- src/pipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pipe.cpp b/src/pipe.cpp index 20c7f69..9d9614b 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -184,7 +184,7 @@ void zmq::pipe_t::flush () if (state == terminating) return; - if (!outpipe->flush ()) + if (outpipe && !outpipe->flush ()) send_activate_read (peer); } -- cgit v1.2.3