Fix socket_send_all_blocking to fail on errors not related to blocking

This commit is contained in:
Gregor Richards 2016-09-21 14:01:25 -04:00
parent 8831d19008
commit b0672e47ae
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ int socket_send_all_blocking(int fd, const void *data_, size_t size,
no_signal ? MSG_NOSIGNAL : 0); no_signal ? MSG_NOSIGNAL : 0);
if (ret <= 0) if (ret <= 0)
{ {
if (!isagain(ret)) if (isagain(ret))
continue; continue;
return false; return false;