1
This commit is contained in:
parent
475e739edb
commit
fa1d719e7e
@ -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)
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user