Created
July 16, 2015 18:44
-
-
Save kahrl/f58cce9dd468045c8fa4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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