ensure nil value after invalidating
This commit is contained in:
parent
3cc8b8052b
commit
39abb8d80e
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue