don't check torrent stat values on first cycle

This commit is contained in:
Mitchell Livingston 2008-01-14 05:01:00 +00:00
parent 0fc517bd75
commit 1d2d4eefde
1 changed files with 7 additions and 1 deletions

View File

@ -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);