mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
when creating a torrent, initialize its cpStatus field before passing it to the torrent's worker thread
This commit is contained in:
parent
29c7ded0a3
commit
18aa394019
1 changed files with 1 additions and 0 deletions
|
@ -222,6 +222,7 @@ torrentRealInit( tr_handle_t * h,
|
|||
tor->error = TR_OK;
|
||||
tor->runStatus = flags & TR_FLAG_PAUSED ? TR_RUN_STOPPED : TR_RUN_RUNNING;
|
||||
tor->recheckFlag = tr_ioCheckFiles( tor, TR_RECHECK_FAST );
|
||||
tor->cpStatus = tr_cpGetStatus( tor->completion );
|
||||
|
||||
tr_sharedLock( h->shared );
|
||||
tor->next = h->torrentList;
|
||||
|
|
Loading…
Reference in a new issue