This commit is contained in:
aozhiwei 2023-09-06 13:20:40 +08:00
parent c2f9dff2c8
commit a6328b71c7

View File

@ -110,7 +110,7 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg)
}
if (msg.proto_version() >= cs::ProtoVersion) {
const mt::Map* map_meta = mt::Map::GetById(msg.mapid());
if (!map_meta) {
if (!map_meta || !map_meta->IsOpen()) {
JoinErrorHandle(msg, 3, hdr.socket_handle);
return;
}