From a091103c25a10210b1542b3eebcaef1d66bd1a8f Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sun, 11 May 2008 13:52:05 +0000 Subject: - Update to 0.9.7.1 PR: ports/123589 Submitted by: Aleksandr Stankevic --- games/daimonin/files/patch-src-socket.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'games/daimonin/files/patch-src-socket.c') diff --git a/games/daimonin/files/patch-src-socket.c b/games/daimonin/files/patch-src-socket.c index cff31d624944..b3b066e35bd2 100644 --- a/games/daimonin/files/patch-src-socket.c +++ b/games/daimonin/files/patch-src-socket.c @@ -1,11 +1,13 @@ ---- ../../src/socket.c.orig Sun May 20 02:10:22 2007 -+++ ../../src/socket.c Thu Jun 7 01:09:08 2007 -@@ -706,6 +706,8 @@ +--- ../../src/socket.c.orig 2008-05-10 13:14:59.000000000 +0300 ++++ ../../src/socket.c 2008-05-10 13:15:04.000000000 +0300 +@@ -706,7 +706,9 @@ start_timer = SDL_GetTicks(); while (connect(*socket_temp, (struct sockaddr *) &insock, sizeof(insock)) == -1) { +- SDL_Delay(3); + // EINPROGRESS leads to EALREADY over few iterations + if (errno == EALREADY) break; - SDL_Delay(3); ++ SDL_Delay(30); /* timeout.... without connect will REALLY hang a long time */ if (start_timer + SOCKET_TIMEOUT_MS < SDL_GetTicks()) + { -- cgit v1.2.3