diff options
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;
|