summaryrefslogtreecommitdiff
path: root/libpcsxcore/socket.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 01:06:07 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 18:05:53 +0200
commit470da05658a97a51bd2ad2db7834bcc13dd995fd (patch)
treef2c85327bfe13813098446ff91a61b725116fa86 /libpcsxcore/socket.c
parentaea565d558f929729c0cb889f9c3296f2f487d0d (diff)
Started implementing GDB server
Diffstat (limited to 'libpcsxcore/socket.c')
-rw-r--r--libpcsxcore/socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpcsxcore/socket.c b/libpcsxcore/socket.c
index 2755aaa1..1faffd3d 100644
--- a/libpcsxcore/socket.c
+++ b/libpcsxcore/socket.c
@@ -256,7 +256,9 @@ void WriteSocket(int client_socket, const char *buffer, size_t len) {
if (!client_socket)
return;
- send(client_socket, buffer, len, 0);
+ if (send(client_socket, buffer, len, 0) == -1) {
+ perror("send():");
+ }
}
void SetsBlock(int s_socket) {