* Clear everything related to this client. */
| 205 | * Clear everything related to this client. |
| 206 | */ |
| 207 | ServerNetworkGameSocketHandler::~ServerNetworkGameSocketHandler() |
| 208 | { |
| 209 | delete this->GetInfo(); |
| 210 | |
| 211 | if (_redirect_console_to_client == this->client_id) _redirect_console_to_client = INVALID_CLIENT_ID; |
| 212 | OrderBackup::ResetUser(this->client_id); |
| 213 | |
| 214 | if (this->savegame != nullptr) { |
| 215 | this->savegame->Destroy(); |
| 216 | this->savegame = nullptr; |
| 217 | } |
| 218 | |
| 219 | InvalidateWindowData(WC_CLIENT_LIST, 0); |
| 220 | } |
| 221 | |
| 222 | std::unique_ptr<Packet> ServerNetworkGameSocketHandler::ReceivePacket() |
| 223 | { |
nothing calls this directly
no test coverage detected