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

Method OnDisconnect

src/network/network_content.cpp:1064–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062}
1063
1064void ClientNetworkContentSocketHandler::OnDisconnect()
1065{
1066 for (size_t i = 0; i < this->callbacks.size(); /* nothing */) {
1067 ContentCallback *cb = this->callbacks[i];
1068 cb->OnDisconnect();
1069 if (i != this->callbacks.size() && this->callbacks[i] == cb) i++;
1070 }
1071}
1072
1073void ClientNetworkContentSocketHandler::OnReceiveContentInfo(const ContentInfo &ci)
1074{

Callers 1

CloseConnectionMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected