a little better releasing of timers
This commit is contained in:
parent
59fcb74d65
commit
eb283833a9
|
@ -506,8 +506,12 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
|||
//stop timers
|
||||
[fTimer invalidate];
|
||||
[fSpeedLimitTimer invalidate];
|
||||
if (fAutoImportTimer && [fAutoImportTimer isValid])
|
||||
if (fAutoImportTimer)
|
||||
{
|
||||
if ([fAutoImportTimer isValid])
|
||||
[fAutoImportTimer invalidate];
|
||||
[fAutoImportTimer release];
|
||||
}
|
||||
|
||||
//save history and stop running torrents
|
||||
[self updateTorrentHistory];
|
||||
|
|
Loading…
Reference in New Issue