Skip to content
Permalink
Browse files

network: Replace a fatal_error with just error logging

  • Loading branch information
sfan5 committed May 14, 2020
1 parent 36d35f2 commit d76785b4c70d834783d2e578086680941257cfa1
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/network/connectionthreads.cpp
@@ -336,11 +336,9 @@ bool ConnectionSendThread::rawSendAsPacket(session_t peer_id, u8 channelnum,
{
PeerHelper peer = m_connection->getPeerNoEx(peer_id);
if (!peer) {
LOG(dout_con << m_connection->getDesc()
<< " INFO: dropped packet for non existent peer_id: "
<< peer_id << std::endl);
FATAL_ERROR_IF(!reliable,
"Trying to send raw packet reliable but no peer found!");
LOG(errorstream << m_connection->getDesc()
<< " dropped " << (reliable ? "reliable " : "")
<< "packet for non existent peer_id: " << peer_id << std::endl);
return false;
}
Channel *channel = &(dynamic_cast<UDPPeer *>(&peer)->channels[channelnum]);

0 comments on commit d76785b

Please sign in to comment.
You can’t perform that action at this time.