propagate all utp link errors

pull/737/head
Jeff Becker 5 years ago
parent 503bea19cd
commit 16e6ab2193
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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…
Cancel
Save