1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

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

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]))
{