From d182f5b4b6124ab952733a73e14934a1d828e504 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 17 Jul 2007 00:31:38 +0000 Subject: [PATCH] test fix tr_getDone() for BentMyWookie --- libtransmission/torrent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 858d0e1aa..bb4c2d98b 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1103,11 +1103,11 @@ torrentThreadLoop ( void * _tor ) cpStatus = tr_cpGetStatus( tor->completion ); if( cpStatus != tor->cpStatus ) { tor->cpStatus = cpStatus; - if( (cpStatus == TR_CP_COMPLETE) /* if we're complete */ + tor->hasChangedState = tor->cpStatus; /* tell the client... */ + if( (cpStatus == TR_CP_COMPLETE) /* ...and if we're complete */ && tor->tracker!=NULL /* and we have a tracker */ && tor->downloadedCur ) { /* and it just happened */ tr_trackerCompleted( tor->tracker ); /* tell the tracker */ - tor->hasChangedState = tor->cpStatus; /* and the client */ } tr_ioSync( tor->io ); }