From 045cbd6ea578106201096c51a3822ddcc94cde5d Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 16 May 2023 18:30:00 +0200 Subject: [PATCH] fix for windows --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index 56b07cc..574e54a 100644 --- a/server.c +++ b/server.c @@ -133,7 +133,7 @@ socket_t open_listening_socket (int port) socket_t accept_incoming_connection (socket_t sock) { socket_t connection = accept (sock, NULL, 0); - if (connection < 0) { + if (connection == INVALID_SOCKET) { return INVALID_SOCKET; } -- 2.30.2