This commit is contained in:
aozhiwei 2024-05-17 16:57:16 +08:00
parent baa0ae5322
commit 48ef328866

View File

@ -2266,10 +2266,10 @@ void Human::ReJoin(long ip_saddr, int socket_handle)
if (!IsPlayer()) { if (!IsPlayer()) {
abort(); abort();
} }
if (socket_handle == 0) { if (socket_handle == 0 && GetSocketHandle() != 0) {
A8_ABORT(); A8_ABORT();
} }
auto old_socket_handle = this->GetSocketHandle(); auto old_socket_handle = GetSocketHandle();
SetIpSaddr(ip_saddr); SetIpSaddr(ip_saddr);
SetSocketHandle(socket_handle); SetSocketHandle(socket_handle);
room->frame_event.AddEnterGame(GetWeakPtrRef()); room->frame_event.AddEnterGame(GetWeakPtrRef());