1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

close socket in destructor

This commit is contained in:
Jeff Becker 2018-09-23 07:29:41 -04:00
parent 4309ea3b97
commit ce03801a51
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -736,8 +736,9 @@ namespace llarp
{
if(sock)
{
utp_shutdown(sock, SHUT_RDWR);
utp_close(sock);
utp_set_userdata(sock, nullptr);
sock = nullptr;
}
}