| 403 | } |
| 404 | |
| 405 | void Session::Disconnect() |
| 406 | { |
| 407 | if (m_control_sock->Get() != INVALID_SOCKET) { |
| 408 | if (m_session_id.empty()) { |
| 409 | Log("Destroying incomplete session"); |
| 410 | } else { |
| 411 | Log("Destroying session %s", m_session_id); |
| 412 | } |
| 413 | } |
| 414 | m_control_sock->Reset(); |
| 415 | m_session_id.clear(); |
| 416 | } |
| 417 | } // namespace sam |
| 418 | } // namespace i2p |