summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pipe.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}