git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@5 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
706e785091
commit
0423b13f0c
@ -1596,7 +1596,9 @@ int parse_tologin(int fd) {
|
||||
|
||||
// only login-server can have an access to here.
|
||||
// so, if it isn't the login-server, we disconnect the session (fd != login_fd).
|
||||
if (fd != login_fd || session[fd]->eof) {
|
||||
if (fd != login_fd)
|
||||
session[fd]->eof = 1;
|
||||
if(session[fd]->eof) {
|
||||
if (fd == login_fd) {
|
||||
printf("Char-server can't connect to login-server (connection #%d).\n", fd);
|
||||
login_fd = -1;
|
||||
@ -2486,7 +2488,9 @@ int parse_char(int fd) {
|
||||
struct char_session_data *sd;
|
||||
unsigned char *p = (unsigned char *) &session[fd]->client_addr.sin_addr;
|
||||
|
||||
if (login_fd < 0 || session[fd]->eof) { // disconnect any player (already connected to char-server or coming back from map-server) if login-server is diconnected.
|
||||
if (login_fd < 0)
|
||||
session[fd]->eof = 1;
|
||||
if(session[fd]->eof) { // disconnect any player (already connected to char-server or coming back from map-server) if login-server is diconnected.
|
||||
if (fd == login_fd)
|
||||
login_fd = -1;
|
||||
close(fd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user