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:
parent
4309ea3b97
commit
ce03801a51
|
@ -736,8 +736,9 @@ namespace llarp
|
|||
{
|
||||
if(sock)
|
||||
{
|
||||
utp_shutdown(sock, SHUT_RDWR);
|
||||
utp_close(sock);
|
||||
utp_set_userdata(sock, nullptr);
|
||||
sock = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue