diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-23 20:40:46 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-23 21:07:32 -0700 |
commit | da6769f929be02a0b3b4d6c52b79922104cdd053 (patch) | |
tree | 37536156be568931d6751d65544d55ceb7c9464e /src/char/char.cpp | |
parent | 1c1752f40aac20bf9a5e56817951a013c2219bed (diff) | |
download | tmwa-da6769f929be02a0b3b4d6c52b79922104cdd053.tar.gz tmwa-da6769f929be02a0b3b4d6c52b79922104cdd053.tar.bz2 tmwa-da6769f929be02a0b3b4d6c52b79922104cdd053.tar.xz tmwa-da6769f929be02a0b3b4d6c52b79922104cdd053.zip |
Use the generated char server protocol in the map server
Diffstat (limited to 'src/char/char.cpp')
-rw-r--r-- | src/char/char.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/char/char.cpp b/src/char/char.cpp index 33ee2b9..7bc17ba 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -1188,13 +1188,7 @@ int char_delete(CharPair *cp) static void parse_tologin(Session *ls) { - // 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 (ls != login_session) - { - ls->set_eof(); - return; - } + assert (ls == login_session); char_session_data *sd = static_cast<char_session_data *>(ls->session_data.get()); @@ -1665,6 +1659,8 @@ void parse_tologin(Session *ls) } } } + if (rv == RecvResult::Error) + ls->set_eof(); } //-------------------------------- @@ -2281,6 +2277,8 @@ void parse_frommap(Session *ms) } } } + if (rv == RecvResult::Error) + ms->set_eof(); } static @@ -2770,6 +2768,8 @@ void parse_char(Session *s) return; } } + if (rv == RecvResult::Error) + s->set_eof(); } static |