summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-05 03:46:19 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-05 03:46:19 +0000
commit2cd926a568df59089d202fd4bbf80a4100a8f891 (patch)
tree381ef2a667d6efba1217472fc52215c29a5f1f93 /src/map/chrif.c
parentb26ca6871acc0ef2062668cfc9a0fcf7016e3ac1 (diff)
downloadhercules-2cd926a568df59089d202fd4bbf80a4100a8f891.tar.gz
hercules-2cd926a568df59089d202fd4bbf80a4100a8f891.tar.bz2
hercules-2cd926a568df59089d202fd4bbf80a4100a8f891.tar.xz
hercules-2cd926a568df59089d202fd4bbf80a4100a8f891.zip
More updates
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@447 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 479b328f5..d11604bc3 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -980,6 +980,17 @@ int chrif_parse(int fd)
if (fd == char_fd) {
printf("Map-server can't connect to char-server (connection #%d).\n", fd);
char_fd = -1;
+ check_connect_char_server(0, 0, 0, 0);
+ while (char_fd <= 0 || session[char_fd] == NULL) {
+ struct map_session_data *sd;
+ int idx;
+ for (idx = 0; idx <fd_max; idx++)
+ if ((session[idx] != NULL) && (sd = session[idx]->session_data) && sd && sd->state.auth)
+ clif_displaymessage(idx, "Map server is paused waiting for char server to return..");
+ flush_fifos();
+ sleep(10);
+ check_connect_char_server(0, 0, 0, 0);
+ }
}
close(fd);
delete_session(fd);