private void CleanUpDownloadInfo() { lock (this.downloadInfos) { foreach (var kvp in this.downloadInfos.ToList()) { var downloadInfo = kvp.Value; if (downloadInfo.IsZombie) { downloadInfo.Cleanup(); this.downloadInfos.Remove(kvp.Key); } } } }