mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Display an access denied message when client detects a server timeout
This commit is contained in:
parent
2c359da836
commit
9c76f379ac
1 changed files with 9 additions and 4 deletions
|
@ -751,6 +751,11 @@ void Client::deletingPeer(con::Peer *peer, bool timeout)
|
||||||
infostream << "Client::deletingPeer(): "
|
infostream << "Client::deletingPeer(): "
|
||||||
"Server Peer is getting deleted "
|
"Server Peer is getting deleted "
|
||||||
<< "(timeout=" << timeout << ")" << std::endl;
|
<< "(timeout=" << timeout << ")" << std::endl;
|
||||||
|
|
||||||
|
if (timeout) {
|
||||||
|
m_access_denied = true;
|
||||||
|
m_access_denied_reason = gettext("Connection timed out.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue