Fix bug in reporting protocol errors

This commit is contained in:
Martin Hurton 2014-05-18 08:12:17 +02:00
parent bac001cc85
commit ed076d4620

View File

@ -306,7 +306,7 @@ void zmq::stream_engine_t::in_event ()
// or the session has rejected the message.
if (rc == -1) {
if (errno != EAGAIN) {
error (connection_error);
error (protocol_error);
return;
}
input_stopped = true;