mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
if a torrent's status changes due to a manual recheck while a torrent is stopped, update the torrent's seeding/downloading state appropriately.
This commit is contained in:
parent
b77b25bc02
commit
8bf8cb4c47
1 changed files with 4 additions and 0 deletions
|
@ -1026,6 +1026,10 @@ torrentThreadLoop ( void * _tor )
|
||||||
tr_ioCheckFiles( tor, TR_RECHECK_FORCE );
|
tr_ioCheckFiles( tor, TR_RECHECK_FORCE );
|
||||||
setRunState( tor, realStatus );
|
setRunState( tor, realStatus );
|
||||||
|
|
||||||
|
tr_torrentWriterLock( tor );
|
||||||
|
tor->cpStatus = tr_cpGetStatus( tor->completion );
|
||||||
|
tr_torrentWriterUnlock( tor );
|
||||||
|
|
||||||
tr_lockUnlock( &checkFilesLock );
|
tr_lockUnlock( &checkFilesLock );
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue