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/SapphireMetaData.m

    r393 r399  
    630630- (void)dealloc 
    631631{ 
     632        [loadTimer invalidate]; 
     633        [importTimer invalidate]; 
    632634        [self postAllFilesRemoved]; 
    633635        [importTimer invalidate]; 
     
    11511153{ 
    11521154        [[NSNotificationCenter defaultCenter] postNotificationName:META_DATA_FILE_INFO_STARTED_LOADING object:self]; 
    1153         [NSTimer scheduledTimerWithTimeInterval:0.0 target:self selector:@selector(loadMetaDataTimer:) userInfo:[NSMutableArray arrayWithObject:self] repeats:NO]; 
     1155        [loadTimer invalidate]; 
     1156        loadTimer = [NSTimer scheduledTimerWithTimeInterval:0.0 target:self selector:@selector(loadMetaDataTimer:) userInfo:[NSMutableArray arrayWithObject:self] repeats:NO]; 
    11541157} 
    11551158 
     
    11771180- (void)loadMetaDataTimer:(NSTimer *)timer 
    11781181{ 
     1182        loadTimer = nil; 
    11791183        NSMutableArray *queue = [timer userInfo]; 
    11801184        id nextObj = [[queue objectAtIndex:0] retain]; 
     
    11911195                if([nextObj isKindOfClass:[SapphireDirectoryMetaData class]]) 
    11921196                        nextTarget = nextObj; 
    1193                 [NSTimer scheduledTimerWithTimeInterval:0.0 target:nextTarget selector:@selector(loadMetaDataTimer:) userInfo:queue repeats:NO]; 
     1197                loadTimer = [NSTimer scheduledTimerWithTimeInterval:0.0 target:nextTarget selector:@selector(loadMetaDataTimer:) userInfo:queue repeats:NO]; 
    11941198        } 
    11951199        else