summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/session.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.cpp b/src/session.cpp
index 5b5fcb3..1aece4d 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -78,7 +78,7 @@ bool zmq::session_t::read (::zmq_msg_t *msg_)
bool zmq::session_t::write (::zmq_msg_t *msg_)
{
- if (out_pipe->write (msg_)) {
+ if (out_pipe && out_pipe->write (msg_)) {
zmq_msg_init (msg_);
return true;
}