summaryrefslogtreecommitdiff
path: root/libpcsxcore/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/socket.c')
-rw-r--r--libpcsxcore/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpcsxcore/socket.c b/libpcsxcore/socket.c
index 51aefdf7..eec4c96a 100644
--- a/libpcsxcore/socket.c
+++ b/libpcsxcore/socket.c
@@ -88,7 +88,7 @@ void StopServer(int s_socket) {
#endif
}
-int GetClient(int s_socket) {
+int GetClient(int s_socket, int blocking) {
int new_socket = accept(s_socket, NULL, NULL);
#ifdef _WIN32
@@ -100,6 +100,7 @@ int GetClient(int s_socket) {
#endif
#ifndef _WIN32
+ if (!blocking)
{
int flags;
flags = fcntl(new_socket, F_GETFL, 0);