when stopping all downloads (of torrent files) on quit, get an enumerator straight from the dictionary instead of first generating an array

This commit is contained in:
Mitchell Livingston 2008-06-26 03:53:42 +00:00
parent cce2138a9c
commit c52e7846e4
1 changed files with 1 additions and 1 deletions

View File

@ -566,7 +566,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
//remove all torrent downloads
if (fPendingTorrentDownloads)
{
NSEnumerator * downloadEnumerator = [[fPendingTorrentDownloads allValues] objectEnumerator];
NSEnumerator * downloadEnumerator = [fPendingTorrentDownloads objectEnumerator];
NSDictionary * downloadDict;
while ((downloadDict = [downloadEnumerator nextObject]))
{