Skip to content
Snippets Groups Projects
Commit 9c76f379 authored by Kahrl's avatar Kahrl
Browse files

Display an access denied message when client detects a server timeout

parent 2c359da8
No related branches found
No related tags found
No related merge requests found
......@@ -743,14 +743,19 @@ bool Client::loadMedia(const std::string &data, const std::string &filename)
// Virtual methods from con::PeerHandler
void Client::peerAdded(con::Peer *peer)
{
infostream<<"Client::peerAdded(): peer->id="
<<peer->id<<std::endl;
infostream << "Client::peerAdded(): peer->id="
<< peer->id << std::endl;
}
void Client::deletingPeer(con::Peer *peer, bool timeout)
{
infostream<<"Client::deletingPeer(): "
infostream << "Client::deletingPeer(): "
"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.");
}
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment