Explorar o código

git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@8 54d463be-8e91-2dee-dedb-b68131a5f0ec

(no author) %!s(int64=20) %!d(string=hai) anos
pai
achega
4e0d7777cd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/login_sql/login.c

+ 3 - 1
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;