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