diff options
author | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-05 00:00:30 +0000 |
---|---|---|
committer | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-05 00:00:30 +0000 |
commit | 8d77d2d60af57862d731814b23a81ec868668043 (patch) | |
tree | 9c95570ad37a9d34e2593c7269f11de0d78a295d /src | |
parent | 6733fb83893eb63dbd2face3fe1f4d44f170aa4a (diff) | |
download | hercules-8d77d2d60af57862d731814b23a81ec868668043.tar.gz hercules-8d77d2d60af57862d731814b23a81ec868668043.tar.bz2 hercules-8d77d2d60af57862d731814b23a81ec868668043.tar.xz hercules-8d77d2d60af57862d731814b23a81ec868668043.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@8 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/login_sql/login.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 50465eb3c..4bf197cc2 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -597,7 +597,9 @@ int parse_fromchar(int fd){ 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);
server_fd[id] = -1;
|