| 438 | } |
| 439 | |
| 440 | NetworkRecvStatus ClientNetworkCoordinatorSocketHandler::CloseConnection(bool error) |
| 441 | { |
| 442 | NetworkCoordinatorSocketHandler::CloseConnection(error); |
| 443 | |
| 444 | this->CloseSocket(); |
| 445 | this->connecting = false; |
| 446 | |
| 447 | _network_server_connection_type = CONNECTION_TYPE_UNKNOWN; |
| 448 | this->next_update = {}; |
| 449 | |
| 450 | this->CloseAllConnections(); |
| 451 | |
| 452 | SetWindowDirty(WC_CLIENT_LIST, 0); |
| 453 | |
| 454 | return NETWORK_RECV_STATUS_OKAY; |
| 455 | } |
| 456 | |
| 457 | /** |
| 458 | * Register our server to receive our invite code. |
no test coverage detected