0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-29 00:32:34 +08:00

Merge pull request #231 from chuckremes/master

mato: merge patch to close libzmq-303
This commit is contained in:
Chuck Remes 2012-02-02 12:16:32 -08:00
commit adee8270dd

View File

@ -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 ();
}