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:
parent
3cc8b8052b
commit
39abb8d80e
1 changed files with 6 additions and 0 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue