This commit is contained in:
aozhiwei 2024-03-25 19:33:41 +08:00
parent 15891a8c23
commit ebd147bb42
2 changed files with 6 additions and 1 deletions

View File

@ -252,5 +252,9 @@ void App::DispatchSocketMsg(f8::MsgHdr* hdr)
ProcessGameGateMsg(hdr); ProcessGameGateMsg(hdr);
} }
break; break;
default:
{
break;
}
} }
} }

View File

@ -499,7 +499,8 @@ void RoomMgr::_CMJoinCustomBattle(f8::MsgHdr* hdr, const cs::CMJoin& msg, int cu
hdr->socket_handle, hdr->socket_handle,
[] (const a8::Args& args) [] (const a8::Args& args)
{ {
int socket_handle = args.Get<int>(0);
RoomMgr::Instance()->socket_hash_.erase(socket_handle);
}); });
std::shared_ptr<cs::CMJoin> join_msg = std::make_shared<cs::CMJoin>(); std::shared_ptr<cs::CMJoin> join_msg = std::make_shared<cs::CMJoin>();
*join_msg = msg; *join_msg = msg;