summaryrefslogtreecommitdiff
path: root/games/daimonin/files/patch-src-socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/daimonin/files/patch-src-socket.c')
-rw-r--r--games/daimonin/files/patch-src-socket.c10
1 files changed, 6 insertions, 4 deletions
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())
+ {