Don't spam server console on player/playersao error but just drop the affected client
parent
ea6c3835de
commit
ff36071d93
|
@ -1792,7 +1792,8 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
||||||
if(player == NULL) {
|
if(player == NULL) {
|
||||||
errorstream<<"Server::ProcessData(): Cancelling: "
|
errorstream<<"Server::ProcessData(): Cancelling: "
|
||||||
"No player for peer_id="<<peer_id
|
"No player for peer_id="<<peer_id
|
||||||
<<std::endl;
|
<< " disconnecting peer!" <<std::endl;
|
||||||
|
m_con.DisconnectPeer(peer_id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1800,7 +1801,8 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
||||||
if(playersao == NULL) {
|
if(playersao == NULL) {
|
||||||
errorstream<<"Server::ProcessData(): Cancelling: "
|
errorstream<<"Server::ProcessData(): Cancelling: "
|
||||||
"No player object for peer_id="<<peer_id
|
"No player object for peer_id="<<peer_id
|
||||||
<<std::endl;
|
<< " disconnecting peer!" <<std::endl;
|
||||||
|
m_con.DisconnectPeer(peer_id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue