summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-05 00:00:20 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-05 00:00:20 +0000
commit6733fb83893eb63dbd2face3fe1f4d44f170aa4a (patch)
tree0e6a90cffa2fef8b46227bd90d68af185bb68c0d /src/login
parent9229267e6bafa6c502b28eb9ba221c7f33e29a48 (diff)
downloadhercules-6733fb83893eb63dbd2face3fe1f4d44f170aa4a.tar.gz
hercules-6733fb83893eb63dbd2face3fe1f4d44f170aa4a.tar.bz2
hercules-6733fb83893eb63dbd2face3fe1f4d44f170aa4a.tar.xz
hercules-6733fb83893eb63dbd2face3fe1f4d44f170aa4a.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@7 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 4d75dbd60..5ec6ac201 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1209,7 +1209,9 @@ int parse_fromchar(int fd) {
for(id = 0; id < MAX_SERVERS; id++)
if (server_fd[id] == fd)
break;
- if (id == MAX_SERVERS || session[fd]->eof) {
+ if (id == MAX_SERVERS)
+ session[fd]->eof = 1;
+ if(session[fd]->eof) {
if (id < MAX_SERVERS) {
printf("Char-server '%s' has disconnected.\n", server[id].name);
login_log("Char-server '%s' has disconnected (ip: %s)." RETCODE,