Commit 029e2886 authored by Martin Lucina's avatar Martin Lucina

Fix assertion in pgm_sender_t::plug() (LIBZMQ-303)

Opening any PGM socket gives this assertion. The problem is in
pgm_sender_t::plug() which is incorrectly testing the return value from
session::write().
Signed-off-by: 's avatarMartin Lucina <martin@lucina.net>
parent b3fbe011
......@@ -98,8 +98,8 @@ void zmq::pgm_sender_t::plug (io_thread_t *io_thread_, session_base_t *session_)
msg_t msg;
msg.init_size (1);
*(unsigned char*) msg.data () = 1;
bool ok = session_->write (&msg);
zmq_assert (ok);
int rc = session_->write (&msg);
errno_assert (rc == 0);
session_->flush ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment