Skip to content

Commit

Permalink
zmq already sets the errno correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Nov 5, 2019
1 parent 3196cf6 commit e77f41e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions messaging/impl_zmq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ Message * ZMQSubSocket::receive(bool non_blocking){
// Make a copy to ensure the data is aligned
r = new ZMQMessage;
r->init((char*)zmq_msg_data(&msg), zmq_msg_size(&msg));
} else {
errno = EINTR;
}
}

zmq_msg_close(&msg);
return r;
Expand Down

0 comments on commit e77f41e

Please sign in to comment.