ensure nil value after invalidating

This commit is contained in:
Mitchell Livingston 2007-05-06 23:16:42 +00:00
parent 3cc8b8052b
commit 39abb8d80e
1 changed files with 6 additions and 0 deletions

View File

@ -1842,7 +1842,10 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
return;
if (fAutoImportTimer)
{
[fAutoImportTimer invalidate];
fAutoImportTimer = nil;
}
//check again in 10 seconds in case torrent file wasn't complete
fAutoImportTimer = [NSTimer scheduledTimerWithTimeInterval: 10.0 target: self
@ -1854,7 +1857,10 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
- (void) changeAutoImport
{
if (fAutoImportTimer)
{
[fAutoImportTimer invalidate];
fAutoImportTimer = nil;
}
[fAutoImportedNames removeAllObjects];
[self checkAutoImportDirectory];