mirror of
https://github.com/transmission/transmission
synced 2025-03-11 06:32:59 +00:00
don't check torrent stat values on first cycle
This commit is contained in:
parent
0fc517bd75
commit
1d2d4eefde
1 changed files with 7 additions and 1 deletions
|
@ -243,7 +243,13 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
- (void) update
|
||||
{
|
||||
//get previous status values before update
|
||||
BOOL wasChecking = [self isChecking], wasError = [self isError], wasStalled = fStalled;
|
||||
BOOL wasChecking = NO, wasError = NO, wasStalled = NO;
|
||||
if (fStat != NULL)
|
||||
{
|
||||
wasChecking = [self isChecking];
|
||||
wasError = [self isError];
|
||||
wasStalled = fStalled;
|
||||
}
|
||||
|
||||
fStat = tr_torrentStat(fHandle);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue