Animatroller.MonoExpander.MonoExpanderClient.CleanUpDownloadInfo C# (CSharp) Method

CleanUpDownloadInfo() private method

private CleanUpDownloadInfo ( ) : void
return void
        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);
                    }
                }
            }
        }