* Disconnect from the content server. */
| 734 | * Disconnect from the content server. |
| 735 | */ |
| 736 | NetworkRecvStatus ClientNetworkContentSocketHandler::CloseConnection(bool) |
| 737 | { |
| 738 | NetworkContentSocketHandler::CloseConnection(); |
| 739 | |
| 740 | if (this->sock == INVALID_SOCKET) return NETWORK_RECV_STATUS_OKAY; |
| 741 | |
| 742 | this->CloseSocket(); |
| 743 | this->OnDisconnect(); |
| 744 | |
| 745 | return NETWORK_RECV_STATUS_OKAY; |
| 746 | } |
| 747 | |
| 748 | /** |
| 749 | * Cancel the current download. |
no test coverage detected