mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
propagate all utp link errors
This commit is contained in:
parent
503bea19cd
commit
16e6ab2193
@ -139,7 +139,7 @@ namespace llarp
|
||||
// update nodedb if required
|
||||
if(rc.IsPublicRouter())
|
||||
{
|
||||
LogInfo("Adding or updating RC for ", RouterID(rc.pubkey),
|
||||
LogDebug("Adding or updating RC for ", RouterID(rc.pubkey),
|
||||
" to nodedb and dht.");
|
||||
_nodedb->UpdateAsyncIfNewer(rc);
|
||||
_dht->impl->PutRCNodeAsync(rc);
|
||||
|
@ -56,10 +56,7 @@ namespace llarp
|
||||
|
||||
if(session && link)
|
||||
{
|
||||
if(arg->error_code == UTP_ETIMEDOUT)
|
||||
{
|
||||
link->HandleTimeout(session);
|
||||
}
|
||||
link->HandleTimeout(session);
|
||||
session->Close();
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user