don't check torrent stat values on first cycle
This commit is contained in:
parent
0fc517bd75
commit
1d2d4eefde
|
@ -243,7 +243,13 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
||||||
- (void) update
|
- (void) update
|
||||||
{
|
{
|
||||||
//get previous status values before 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);
|
fStat = tr_torrentStat(fHandle);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue