private void PumpQueue()
        {
            Thread.CurrentThread.Name = "PumpQueue";

            int          index;
            DownloadInfo dif = null;

            while (true)
            {
                if (Enabled)
                {
                    dif = null;
                    lock (download_queue.SyncRoot)
                    {
                        lock (tsm.SyncRoot)
                        {
                            if (download_queue.Count > 0 &&
                                download_queue.Count != tsm.CurrentDownloads)
                            {
                                if (tsm.CurrentDownloads < tsm.MaximumDownloads)
                                {
                                    index = download_queue.IndexOfFirstReady();
                                    if (index >= 0)
                                    {
                                        dif       = download_queue [index];
                                        dif.State = DownloadState.Running;
                                    }
                                }
                            }
                        }
                    }

                    if (dif != null)
                    {
                        StartDownloadTask(dif);
                    }
                }
                else
                {
                    Monitor.Enter(dispatchThreadMonitor);
                    Monitor.Wait(dispatchThreadMonitor);
                    Monitor.Exit(dispatchThreadMonitor);
                }

                Thread.Sleep(32);
            }
        }