Merge pull request #1619 from npapke/issue-564

Properly parse dht_search()
This commit is contained in:
Mitch Livingston 2021-02-27 10:45:31 -05:00 committed by GitHub
commit 9c5e6f7ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -729,7 +729,7 @@ static int tr_dhtAnnounce(tr_torrent* tor, int af, bool announce)
{
rc = dht_search(tor->info.hash, announce ? tr_sessionGetPeerPort(session_) : 0, af, callback, NULL);
if (rc >= 1)
if (rc >= 0)
{
tr_logAddTorInfo(tor, "Starting %s DHT announce (%s, %d nodes)", af == AF_INET6 ? "IPv6" : "IPv4",
tr_dhtPrintableStatus(status), numnodes);