dont persist sessions if we failed to build

pull/1576/head
Jeff Becker 3 years ago
parent 657c39a91c
commit 1677ed40f6
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -148,7 +148,8 @@ namespace llarp
if (ctx->router->SendToOrQueue(remote, msg, sentHandler))
{
// persist session with router until this path is done
ctx->router->PersistSessionUntil(remote, ctx->path->ExpireTime());
if (ctx->path)
ctx->router->PersistSessionUntil(remote, ctx->path->ExpireTime());
}
else
{

Loading…
Cancel
Save