test fix tr_getDone() for BentMyWookie

This commit is contained in:
Charles Kerr 2007-07-17 00:31:38 +00:00
parent d640972ed2
commit d182f5b4b6
1 changed files with 2 additions and 2 deletions

View File

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