mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Display an access denied message when client detects a server timeout
This commit is contained in:
@@ -751,6 +751,11 @@ 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_reason = gettext("Connection timed out.");
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user