Skip to content

Commit d76785b

Browse files
authoredMay 14, 2020
network: Replace a fatal_error with just error logging
1 parent 36d35f2 commit d76785b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

Diff for: ‎src/network/connectionthreads.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,9 @@ bool ConnectionSendThread::rawSendAsPacket(session_t peer_id, u8 channelnum,
336336
{
337337
PeerHelper peer = m_connection->getPeerNoEx(peer_id);
338338
if (!peer) {
339-
LOG(dout_con << m_connection->getDesc()
340-
<< " INFO: dropped packet for non existent peer_id: "
341-
<< peer_id << std::endl);
342-
FATAL_ERROR_IF(!reliable,
343-
"Trying to send raw packet reliable but no peer found!");
339+
LOG(errorstream << m_connection->getDesc()
340+
<< " dropped " << (reliable ? "reliable " : "")
341+
<< "packet for non existent peer_id: " << peer_id << std::endl);
344342
return false;
345343
}
346344
Channel *channel = &(dynamic_cast<UDPPeer *>(&peer)->channels[channelnum]);

0 commit comments

Comments
 (0)
Please sign in to comment.