mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
ensure nil value after invalidating
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user