handle end case by telling requester that it's not there

This commit is contained in:
Jeff Becker 2020-02-07 14:46:12 -05:00
parent 7e1a6236be
commit 3bea7327cb
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

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