Revert "Fix rvalue for socket::send() on EHOSTUNREACH"

This commit is contained in:
Simon Giesecke 2017-08-29 11:15:03 +02:00 committed by GitHub
parent 0c249fc985
commit a94e648495

View File

@ -635,8 +635,6 @@ namespace zmq
return (size_t) nbytes; return (size_t) nbytes;
if (zmq_errno () == EAGAIN) if (zmq_errno () == EAGAIN)
return 0; return 0;
if (zmq_errno () == EHOSTUNREACH)
return 0;
throw error_t (); throw error_t ();
} }
@ -647,8 +645,6 @@ namespace zmq
return true; return true;
if (zmq_errno () == EAGAIN) if (zmq_errno () == EAGAIN)
return false; return false;
if (zmq_errno () == EHOSTUNREACH)
return false;
throw error_t (); throw error_t ();
} }