MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / onCancel

Method onCancel

src/OpenLoco/src/Network/NetworkClient.cpp:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void NetworkClient::onCancel()
143{
144 switch (_status)
145 {
146 case NetworkClientStatus::connecting:
147 Logging::info("Connecting to server cancelled");
148 close();
149 break;
150 default:
151 break;
152 }
153}
154
155void NetworkClient::onReceivePacketFromServer(const Packet& packet)
156{

Callers

nothing calls this directly

Calls 2

infoFunction · 0.85
closeFunction · 0.70

Tested by

no test coverage detected