This commit is contained in:
aozhiwei 2020-08-11 16:03:39 +08:00
parent 475e739edb
commit fa1d719e7e
2 changed files with 6 additions and 1 deletions

View File

@ -771,7 +771,7 @@ void Room::OnPlayerOffline(Player* hum)
if (GetOnlinePlayerNum() <= 0) { if (GetOnlinePlayerNum() <= 0) {
xtimer.AddDeadLineTimerAndAttach xtimer.AddDeadLineTimerAndAttach
( (
SERVER_FRAME_RATE * 40, SERVER_FRAME_RATE * 15,
a8::XParams() a8::XParams()
.SetSender(this), .SetSender(this),
[] (const a8::XParams& param) [] (const a8::XParams& param)

View File

@ -188,6 +188,11 @@ void RoomMgr::_CMReconnect(f8::MsgHdr& hdr, const cs::CMReconnect& msg)
Room* room = GetRoomByUuid(a8::XValue(msg.room_uuid())); Room* room = GetRoomByUuid(a8::XValue(msg.room_uuid()));
if (!room) { if (!room) {
send_reconnect_failed(hdr.socket_handle, 1, "房间已销毁"); send_reconnect_failed(hdr.socket_handle, 1, "房间已销毁");
a8::UdpLog::Instance()->Debug
("房间已销毁 %s",
{
msg.room_uuid()
});
return; return;
} }
if (room->GetRoomMode() != kChiJiMode) { if (room->GetRoomMode() != kChiJiMode) {