From b0672e47ae2b04d22733f15fb7eb8bbed70cf724 Mon Sep 17 00:00:00 2001 From: Gregor Richards Date: Wed, 21 Sep 2016 14:01:25 -0400 Subject: [PATCH] Fix socket_send_all_blocking to fail on errors not related to blocking --- libretro-common/net/net_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/net/net_socket.c b/libretro-common/net/net_socket.c index 735717ce53..1daa7d27c6 100644 --- a/libretro-common/net/net_socket.c +++ b/libretro-common/net/net_socket.c @@ -164,7 +164,7 @@ int socket_send_all_blocking(int fd, const void *data_, size_t size, no_signal ? MSG_NOSIGNAL : 0); if (ret <= 0) { - if (!isagain(ret)) + if (isagain(ret)) continue; return false;