diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2022-06-21 15:23:37 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-06-22 09:19:43 +0200 |
commit | a724c39606273dfe4c6f9887ef8b77d0a98f1b34 (patch) | |
tree | 092db93c07cbfce5dd25cc5353a342197390a619 /src/i2p.cpp | |
parent | e8ff3f0c52e7512a580bc907dc72e5bb141b4217 (diff) |
net: rename Sock::Reset() to Sock::Close() and make it private
Outside of `Sock`, `Sock::Reset()` was used in just one place (in
`i2p.cpp`) which can use the assignment operator instead.
This simplifies the public `Sock` API by having one method less.
Diffstat (limited to 'src/i2p.cpp')
-rw-r--r-- | src/i2p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i2p.cpp b/src/i2p.cpp index caff8c1e69..8611984555 100644 --- a/src/i2p.cpp +++ b/src/i2p.cpp @@ -410,7 +410,7 @@ void Session::Disconnect() Log("Destroying session %s", m_session_id); } } - m_control_sock->Reset(); + m_control_sock = std::make_unique<Sock>(INVALID_SOCKET); m_session_id.clear(); } } // namespace sam |