Show
Ignore:
Timestamp:
12/15/07 03:28:38 (4 years ago)
Author:
gbooker
Message:

Quick timer audit. Should handle the crash log in #31 (which was reported in a leopard ticket as well even though the crash log was abviously not leopard related, and thus not the right ticket). If this crash log is not from the original poster, please post still.
Fixes #31

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireMetaDataScanner.m

    r375 r399  
    2525 
    2626- (void) dealloc { 
     27        [nextFileTimer invalidate]; 
    2728        [metaDir release]; 
    2829        [remaining release]; 
     
    5556                results = [NSMutableArray new]; 
    5657        /*Start the scan*/ 
    57         [NSTimer scheduledTimerWithTimeInterval:0.0 target:self selector:@selector(nextFile:) userInfo:nil repeats:NO]; 
     58        nextFileTimer = [NSTimer scheduledTimerWithTimeInterval:0.0 target:self selector:@selector(nextFile:) userInfo:nil repeats:NO]; 
    5859} 
    5960 
     
    8687        [results addObjectsFromArray:subs]; 
    8788        /*Resume*/ 
    88         [NSTimer scheduledTimerWithTimeInterval:0.0 target:self selector:@selector(nextFile:) userInfo:nil repeats:NO]; 
     89        nextFileTimer = [NSTimer scheduledTimerWithTimeInterval:0.0 target:self selector:@selector(nextFile:) userInfo:nil repeats:NO]; 
    8990} 
    9091 
     
    117118- (void)nextFile:(NSTimer *)timer 
    118119{ 
     120        nextFileTimer = nil; 
    119121        /*Check for cancel and completion*/ 
    120122        if(![delegate getSubFilesCanceled] && [remaining count])