Exemple #1
0
        public void CleanUp()
        {
            _isFinished   = false;
            _hasFoundUser = false;
            _gotFilelist  = false;

            downloadManager.Clear();
            transferManager.Clear();

            downloadManager.DownloadCompleted -= downloadManager_DownloadCompleted;
            downloadManager.DownloadAdded     -= downloadManager_DownloadAdded;
            downloadManager.SourceAdded       -= downloadManager_SourceAdded;
            downloadManager.SegmentCompleted  -= downloadManager_SegmentCompleted;

            // Remove filelist from filesystem
            //if (System.IO.File.Exists(_filelistPath))
            //{
            //    System.IO.File.Delete(_filelistPath);
            //    _filelistPath = null;
            //}
        }