freeciv: give server more time to start

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
This commit is contained in:
Marko Lindqvist
2012-05-15 02:05:17 +03:00
parent a5cf77382f
commit db998759a1
2 changed files with 17 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ DEPENDS = "gtk+ readline"
SRC_URI = "${SOURCEFORGE_MIRROR}/freeciv/freeciv-${PV}.tar.gz \
file://allow-root.patch \
file://wait-server-start.patch \
"
S = "${WORKDIR}/freeciv-${PV}"

View File

@@ -0,0 +1,16 @@
Give server more time to start
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
diff -Nurd -X.diff_ignore freeciv/client/connectdlg_common.c freeciv/client/connectdlg_common.c
--- freeciv/client/connectdlg_common.c 2011-07-30 00:24:42.000000000 +0300
+++ freeciv/client/connectdlg_common.c 2012-05-14 23:31:13.000000000 +0300
@@ -60,7 +60,7 @@
#include "tilespec.h"
#define WAIT_BETWEEN_TRIES 100000 /* usecs */
-#define NUMBER_OF_TRIES 500
+#define NUMBER_OF_TRIES 10000
#ifdef WIN32_NATIVE
/* FIXME: this is referenced directly in gui-win32/connectdlg.c. */