From 7a54e88d4e604fc2f808b7c4eba1b13d8a90a038 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 23 Sep 2007 02:11:53 +0000 Subject: [PATCH] fix bug #342 -- some hash checks were incorrectly failing, which caused the `bytes downloaded' field to appear to jump back and forth --- libtransmission/peer-msgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/peer-msgs.c b/libtransmission/peer-msgs.c index ee44290cb..517bc9e57 100644 --- a/libtransmission/peer-msgs.c +++ b/libtransmission/peer-msgs.c @@ -906,7 +906,7 @@ gotBlock( tr_peermsgs * msgs, if( tr_cpPieceIsComplete( tor->completion, index ) ) { - if( !tr_ioHash( tor, index ) ) + if( tr_ioHash( tor, index ) ) { gotBadPiece( msgs, index ); return;