a little better releasing of timers

This commit is contained in:
Mitchell Livingston 2007-05-07 00:20:04 +00:00
parent 59fcb74d65
commit eb283833a9
1 changed files with 6 additions and 2 deletions

View File

@ -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];