aboutsummaryrefslogtreecommitdiff
path: root/src/client/client.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-05-22 12:05:27 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-05-22 12:05:27 +0200
commit3ff3103e98b350712543f926c429ab339700e252 (patch)
tree61827d6b7dcb51c38f17f068c8b498c16a0db1c3 /src/client/client.cpp
parent350b6d175c406fbbc002237f37db4cf88d6d3d19 (diff)
parent9f338f5a56e5adee3d11d59827f7e2b8a714e6c2 (diff)
downloaddragonfireclient-3ff3103e98b350712543f926c429ab339700e252.tar.xz
Merge branch 'master' of https://github.com/minetest/minetest
Diffstat (limited to 'src/client/client.cpp')
-rw-r--r--src/client/client.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index 4e4bb8a97..2d9d226e4 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -789,16 +789,18 @@ void Client::peerAdded(con::Peer *peer)
infostream << "Client::peerAdded(): peer->id="
<< peer->id << std::endl;
}
+
void Client::deletingPeer(con::Peer *peer, bool timeout)
{
infostream << "Client::deletingPeer(): "
"Server Peer is getting deleted "
<< "(timeout=" << timeout << ")" << std::endl;
- if (timeout) {
- m_access_denied = true;
+ m_access_denied = true;
+ if (timeout)
m_access_denied_reason = gettext("Connection timed out.");
- }
+ else
+ m_access_denied_reason = gettext("Connection aborted (protocol error?).");
}
/*