aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-05-14 21:18:26 +0200
committerGitHub <noreply@github.com>2020-05-14 21:18:26 +0200
commitd76785b4c70d834783d2e578086680941257cfa1 (patch)
treea5f2e7aca9653f6f89b25a4da522a3dac440c43e /src
parent36d35f2fe31a429c1510df680801940472416d45 (diff)
downloadminetest-d76785b4c70d834783d2e578086680941257cfa1.tar.gz
minetest-d76785b4c70d834783d2e578086680941257cfa1.tar.bz2
minetest-d76785b4c70d834783d2e578086680941257cfa1.zip
network: Replace a fatal_error with just error logging
Diffstat (limited to 'src')
-rw-r--r--src/network/connectionthreads.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/network/connectionthreads.cpp b/src/network/connectionthreads.cpp
index 1f33d2ded..9a6617a1c 100644
--- a/src/network/connectionthreads.cpp
+++ b/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]);