Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created July 16, 2015 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/f58cce9dd468045c8fa4 to your computer and use it in GitHub Desktop.
Save kahrl/f58cce9dd468045c8fa4 to your computer and use it in GitHub Desktop.
diff --git a/src/client.cpp b/src/client.cpp
index 66aac62..3a4dd9d 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -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.");
+ }
}
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment