diff options
Diffstat (limited to 'libpcsxcore/socket.c')
| -rw-r--r-- | libpcsxcore/socket.c | 4 |
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) { |
