1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 21:12:05 +00:00

ensure nil value after invalidating

This commit is contained in:
Mitchell Livingston 2007-05-06 23:16:42 +00:00
parent 3cc8b8052b
commit 39abb8d80e

View file

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