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:
parent
8329aa0ee6
commit
768c6f7367
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue