1
This commit is contained in:
parent
2decd9f875
commit
1fc55be04f
@ -2267,7 +2267,7 @@ void Human::ReJoin(long ip_saddr, int socket_handle)
|
||||
abort();
|
||||
}
|
||||
auto old_socket_handle = GetSocketHandle();
|
||||
if (SocketIsValid()) {
|
||||
if (SocketIsValid() && socket_handle != GetSocketHandle()) {
|
||||
GGListener::Instance()->ForceCloseChildSocket(GetSocketHandle());
|
||||
PlayerMgr::Instance()->RemovePlayerBySocket(GetSocketHandle());
|
||||
}
|
||||
|
@ -34,7 +34,9 @@ void TraceMgr::Trace(const std::string& hint)
|
||||
|
||||
void TraceMgr::PrintBackTrace()
|
||||
{
|
||||
#if 0
|
||||
std::cout << boost::stacktrace::stacktrace();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user