diff --git a/libtransmission/tr-dht.c b/libtransmission/tr-dht.c index 5b6619277..955ff27c1 100644 --- a/libtransmission/tr-dht.c +++ b/libtransmission/tr-dht.c @@ -592,10 +592,8 @@ tr_dhtCallback(unsigned char *buf, int buflen, assert(tr_isSession(ss)); - if(sv != session) { - tr_nerr("DHT", "tr_dhtCallback called for unexpected session"); + if(sv != session) return; - } rc = dht_periodic( buf, buflen, from, fromlen, &tosleep, callback, NULL);