mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
handle end case by telling requester that it's not there
This commit is contained in:
parent
7e1a6236be
commit
3bea7327cb
@ -112,12 +112,7 @@ namespace llarp
|
||||
if(recursionDepth == 0)
|
||||
{
|
||||
// we don't have it
|
||||
|
||||
Key_t closer;
|
||||
// find closer peer
|
||||
if(!dht.Nodes()->FindClosest(location, closer))
|
||||
return false;
|
||||
replies.emplace_back(new GotIntroMessage(From, closer, txID));
|
||||
replies.emplace_back(new GotIntroMessage({}, txID));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user