Do not crash if "no peer found!"
This commit is contained in:
parent
f524bd2a1c
commit
dc0599a016
@ -1546,7 +1546,9 @@ bool ConnectionSendThread::rawSendAsPacket(u16 peer_id, u8 channelnum,
|
|||||||
LOG(dout_con<<m_connection->getDesc()
|
LOG(dout_con<<m_connection->getDesc()
|
||||||
<<" INFO: dropped packet for non existent peer_id: "
|
<<" INFO: dropped packet for non existent peer_id: "
|
||||||
<< peer_id << std::endl);
|
<< peer_id << std::endl);
|
||||||
FATAL_ERROR_IF(!reliable, "Trying to send raw packet reliable but no peer found!");
|
if (!reliable)
|
||||||
|
LOG(dout_con<<m_connection->getDesc()
|
||||||
|
<<"Trying to send raw packet reliable but no peer found!"<<std::endl);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Channel *channel = &(dynamic_cast<UDPPeer*>(&peer)->channels[channelnum]);
|
Channel *channel = &(dynamic_cast<UDPPeer*>(&peer)->channels[channelnum]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user