1
This commit is contained in:
parent
c2f9dff2c8
commit
a6328b71c7
@ -110,7 +110,7 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
|||||||
}
|
}
|
||||||
if (msg.proto_version() >= cs::ProtoVersion) {
|
if (msg.proto_version() >= cs::ProtoVersion) {
|
||||||
const mt::Map* map_meta = mt::Map::GetById(msg.mapid());
|
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);
|
JoinErrorHandle(msg, 3, hdr.socket_handle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user