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

dont close socket on bad state

This commit is contained in:
Jeff Becker 2019-08-02 09:43:03 -04:00
parent 8329aa0ee6
commit 768c6f7367
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -32,8 +32,6 @@ namespace llarp
Session* session = static_cast< Session* >(utp_get_userdata(arg->socket));
if(session && l)
session->OutboundLinkEstablished(l);
else
utp_close(arg->socket);
return 0;
}
@ -61,10 +59,6 @@ namespace llarp
link->HandleTimeout(session);
session->Close();
}
else
{
utp_close(arg->socket);
}
return 0;
}