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
|
//stop timers
|
||||||
[fTimer invalidate];
|
[fTimer invalidate];
|
||||||
[fSpeedLimitTimer invalidate];
|
[fSpeedLimitTimer invalidate];
|
||||||
if (fAutoImportTimer && [fAutoImportTimer isValid])
|
if (fAutoImportTimer)
|
||||||
|
{
|
||||||
|
if ([fAutoImportTimer isValid])
|
||||||
[fAutoImportTimer invalidate];
|
[fAutoImportTimer invalidate];
|
||||||
|
[fAutoImportTimer release];
|
||||||
|
}
|
||||||
|
|
||||||
//save history and stop running torrents
|
//save history and stop running torrents
|
||||||
[self updateTorrentHistory];
|
[self updateTorrentHistory];
|
||||||
|
|
Loading…
Reference in New Issue