MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnFailure

Method OnFailure

src/network/network.cpp:648–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646 TCPQueryConnecter(std::string_view connection_string) : TCPServerConnecter(connection_string, NETWORK_DEFAULT_PORT), connection_string(connection_string) {}
647
648 void OnFailure() override
649 {
650 Debug(net, 9, "Query::OnFailure(): connection_string={}", this->connection_string);
651
652 NetworkGame *item = NetworkGameListAddItem(connection_string);
653 item->status = NGLS_OFFLINE;
654 item->refreshing = false;
655
656 UpdateNetworkGameWindow();
657 }
658
659 void OnConnect(SOCKET s) override
660 {

Callers

nothing calls this directly

Calls 2

NetworkGameListAddItemFunction · 0.85
UpdateNetworkGameWindowFunction · 0.85

Tested by

no test coverage detected