test fix tr_getDone() for BentMyWookie
This commit is contained in:
parent
d640972ed2
commit
d182f5b4b6
|
@ -1103,11 +1103,11 @@ torrentThreadLoop ( void * _tor )
|
||||||
cpStatus = tr_cpGetStatus( tor->completion );
|
cpStatus = tr_cpGetStatus( tor->completion );
|
||||||
if( cpStatus != tor->cpStatus ) {
|
if( cpStatus != tor->cpStatus ) {
|
||||||
tor->cpStatus = 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->tracker!=NULL /* and we have a tracker */
|
||||||
&& tor->downloadedCur ) { /* and it just happened */
|
&& tor->downloadedCur ) { /* and it just happened */
|
||||||
tr_trackerCompleted( tor->tracker ); /* tell the tracker */
|
tr_trackerCompleted( tor->tracker ); /* tell the tracker */
|
||||||
tor->hasChangedState = tor->cpStatus; /* and the client */
|
|
||||||
}
|
}
|
||||||
tr_ioSync( tor->io );
|
tr_ioSync( tor->io );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue