summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-07 13:49:13 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-07 13:49:13 +0000
commit58862dd12a898cbf75f099a2613ed6540325ce90 (patch)
tree09ad6e5ee90a839a8ed1138eaf9f660d410de28e /src/map/chrif.c
parentcbf0ed85bcaac6e044dee6b0af2f31cacb903af4 (diff)
downloadhercules-58862dd12a898cbf75f099a2613ed6540325ce90.tar.gz
hercules-58862dd12a898cbf75f099a2613ed6540325ce90.tar.bz2
hercules-58862dd12a898cbf75f099a2613ed6540325ce90.tar.xz
hercules-58862dd12a898cbf75f099a2613ed6540325ce90.zip
Removed the 'wait close' timer that closed a session's socket after 5 seconds.
This was causing random disconnects when logging in. (bugreport:1330) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12520 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 615755fd0..27005e8f0 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -830,7 +830,7 @@ int chrif_changedsex(int fd)
sd->login_id1++; // change identify, because if player come back in char within the 5 seconds, he can change its characters
// do same modify in login-server for the account, but no in char-server (it ask again login_id1 to login, and don't remember it)
clif_displaymessage(sd->fd, "Your sex has been changed (need disconnection by the server)...");
- clif_setwaitclose(sd->fd); // forced to disconnect for the change
+ set_eof(sd->fd); // forced to disconnect for the change
}
return 0;
}
@@ -912,7 +912,7 @@ int chrif_accountdeletion(int fd)
if (sd != NULL) {
sd->login_id1++; // change identify, because if player come back in char within the 5 seconds, he can change its characters
clif_displaymessage(sd->fd, "Your account has been deleted (disconnection)...");
- clif_setwaitclose(sd->fd); // forced to disconnect for the change
+ set_eof(sd->fd); // forced to disconnect for the change
}
} else {
if (sd != NULL)
@@ -967,7 +967,7 @@ int chrif_accountban(int fd)
clif_displaymessage(sd->fd, tmpstr);
}
- clif_setwaitclose(sd->fd); // forced to disconnect for the change
+ set_eof(sd->fd); // forced to disconnect for the change
return 0;
}