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

Method OnFailure

src/network/network_coordinator.cpp:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86
87 void OnFailure() override
88 {
89 /* Close the STUN connection too, as it is no longer of use. */
90 _network_coordinator_client.CloseStunHandler(this->token, this->family);
91
92 _network_coordinator_client.ConnectFailure(this->token, this->tracking_number);
93 }
94
95 void OnConnect(SOCKET s) override
96 {

Callers

nothing calls this directly

Calls 2

CloseStunHandlerMethod · 0.80
ConnectFailureMethod · 0.45

Tested by

no test coverage detected