propagate all utp link errors

This commit is contained in:
Jeff Becker 2019-07-28 09:00:12 -04:00
parent 503bea19cd
commit 16e6ab2193
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 2 additions and 5 deletions

View File

@ -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);

View File

@ -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;