diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index d8f002547..3b43ddbcd 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -627,6 +627,14 @@ private: public: TCPQueryConnecter(const std::string &connection_string) : TCPConnecter(connection_string, NETWORK_DEFAULT_PORT), connection_string(connection_string) {} + void OnFailure() override + { + NetworkGameList *item = NetworkGameListAddItem(connection_string); + item->online = false; + + UpdateNetworkGameWindow(); + } + void OnConnect(SOCKET s) override { _networking = true; |