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:
parent
cce2138a9c
commit
c52e7846e4
1 changed files with 1 additions and 1 deletions
|
@ -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]))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue