1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 06:02:57 +00:00

Fix bug where upload and download totals were discarded when fastresume failed.

This commit is contained in:
Josh Elsasser 2006-06-11 04:32:41 +00:00
parent 2ef0725b59
commit e1c5b19b46

View file

@ -314,11 +314,17 @@ static int fastResumeLoad( tr_io_t * io )
if( (uint32_t)FR_PROGRESS_LEN( tor ) == len ) if( (uint32_t)FR_PROGRESS_LEN( tor ) == len )
{ {
if( fastResumeLoadProgress( io, file ) ) if( fastResumeLoadProgress( io, file ) )
{
if( feof( file ) || ferror( file ) )
{ {
fclose( file ); fclose( file );
return 1; return 1;
} }
}
else
{
ret = 0; ret = 0;
}
continue; continue;
} }
break; break;