1
This commit is contained in:
parent
fa1d719e7e
commit
3fb4b79df2
@ -911,6 +911,7 @@ void Player::_CMReconnect(f8::MsgHdr& hdr, const cs::CMReconnect& msg)
|
|||||||
{
|
{
|
||||||
int old_socket_handle = socket_handle;
|
int old_socket_handle = socket_handle;
|
||||||
if (socket_handle != 0) {
|
if (socket_handle != 0) {
|
||||||
|
GGListener::Instance()->ForceCloseChildSocket(socket_handle);
|
||||||
PlayerMgr::Instance()->RemovePlayerBySocket(socket_handle);
|
PlayerMgr::Instance()->RemovePlayerBySocket(socket_handle);
|
||||||
}
|
}
|
||||||
socket_handle = hdr.socket_handle;
|
socket_handle = hdr.socket_handle;
|
||||||
|
@ -180,7 +180,7 @@ void RoomMgr::_CMReconnect(f8::MsgHdr& hdr, const cs::CMReconnect& msg)
|
|||||||
.SetSender(socket_handle),
|
.SetSender(socket_handle),
|
||||||
[] (const a8::XParams& param)
|
[] (const a8::XParams& param)
|
||||||
{
|
{
|
||||||
GGListener::Instance()->ForceCloseClient(param.sender);
|
GGListener::Instance()->ForceCloseChildSocket(param.sender);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user